Re: HTML email enconding

From: Date: Mon, 24 Nov 2003 12:44:22 +0000
Subject: Re: HTML email enconding
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-170780@lists.php.net to get a copy of this message
Hello, On 11/24/2003 07:26 AM, Binay wrote:
Is it necessary to encode the message using base64 or quoted-printable format while sending the HTML email. What if i don't encode the message i.e (no Content-Transfer-Encoding specified)? Does it impose some security vulnerabilities?
In general yes because you messages may pass through gateways that do not support 8 bit formats. Anyway, you should never send HTML only messages because many anti-spam filters will discard your messages. You need to compose HTML messages with at least a dumb plain text alternative part in the same body. That is done by sending a message with and compound multipart/alternative message. You may want to try this class to make it easy to send multipart/alternative messages, as well multipart/related if you want to embed any images related to the HTML message. http://www.phpclasses.org/mimemessage -- Regards, Manuel Lemos Free ready to use OOP components written in PHP http://www.phpclasses.org/

« previous php.general (#170780) next »