| 
	
 | 
 Posted by amygdala on 08/22/07 19:00 
"Manuel Lemos" <mlemos@acm.org> schreef in bericht  
news:fafrmh$dsl$1@aioe.org... 
> Hello, 
 
Hi Manuel, 
 
Thanks for the response. 
 
<snip> 
 
> The only thing really wrong is that you should not send 8 bit encoded 
> messages as many mail gateways do not supported. Instead of 8 bit you 
> should use quoted-printable encoding. 
 
Alright, I didn't know this. This makes sense. Cause like I said, even  
without me encoding it as utf-8, the problem randomly occured. Perhaps the  
apparent random appearance of strange characters and/or missing of  
diactrical characters could be explained due to the fact that subsequent  
mail messages can get send through different mail gateways to their  
end-destination, just like a tcp packets? Or is that not correct? Not very  
imporant for me to get answered, but it would help me get a better  
understanding of things. ;-) 
 
> You can also have 8 bit characters in the headers but they must be 
> encoded with q-encoding to avoid the same problem with the message body. 
 
I probably won't be needing that at this point in time. But that's good to  
know also. 
 
> This is a bit complicated to encode by hand. I use this MIME message 
> composing and sending class to take care of all that for me. 
> 
> http://www.phpclasses.org/mimemessage 
> 
 
Although I only had a quick glance at your class, and it probably does the  
job well, it looks like a bit of overkill for my purposes. So in conclusion,  
is it fair to say that I only need to change: 
 
$headers .= 'Content-Transfer-Encoding: 8bit' . LF; 
 
to 
 
$headers .= 'Content-Transfer-Encoding: quoted-printable' . LF; 
 
and leave 
 
$headers .= 'Content-Type: text/plain; charset=iso-8859-1' . LF; 
 
as is? 
 
Thank you in advance.
 
  
Navigation:
[Reply to this message] 
 |