|
Posted by Manuel Lemos on 02/07/07 19:25
Hello,
on 02/07/2007 05:03 PM geek7 said the following:
> OK,
>
> I'm trying to create an email and when it sends the email, it mostly
> works except that there are '!' inserted at some spots. Checking the
> html source of the email, looks like they are placed at the end of
> long lines. I'm assuming there is some issue with the encoding, but
> searching through groups, nothing I've tried has worked. Can someone
> let me know if I should be doing something differently with my headers
> for an html email? I'll change emails to null@null.com. Thanks!
>
> $headers = "X-Mailer: PHP " . phpversion() . "\r\n";
> $headers .= "From: null@null.com\r\n";
> $headers .= "Reply-To: null@null.com\r\n";
> $headers .= "Content-Type: text/html;\r\n";
> $headers .= "charset=\"iso-8859-1\"\r\n";
> $headers .= "Content-Transfer-Encoding: 7bit\r\n";
I think you need to encode your message with MIME quoted-printable.
If you do not know how to compose MIME quoted-printable messages, you
may want to try this MIME message class:
http://www.phpclasses.org/mimemessage
It is also better to include an alternative plain text part using
multipart/alternative MIME parts. This is not related to you problem.
Just a comment after noticing you used Content-Type set to text/html .
The class above can also help solving that problem.
--
Regards,
Manuel Lemos
Metastorage - Data object relational mapping layer generator
http://www.metastorage.net/
PHP Classes - Free ready to use OOP components written in PHP
http://www.phpclasses.org/
Navigation:
[Reply to this message]
|