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/
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php