Hi Eugene, Thanks for quick reply So does it mean that if i don't encode the message then no need of specifying the Content-Transfer-Encoding?? And almost all mail client will interpret it correctly??
Binay ----- Original Message ----- From: "Eugene Lee" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, November 24, 2003 3:02 PM Subject: Re: [PHP] HTML email enconding > On Mon, Nov 24, 2003 at 02:56:25PM +0530, Binay wrote: > : > : Is it necessary to encode the message using base64 or quoted-printable > : format while sending the HTML email. > > Not always. Sometimes you can get away with only: > > Content-Type: text/html; charset="ISO-8859-1" > Content-Transfer-Encoding: 7bit > > : What if i don't encode the message i.e (no Content-Transfer-Encoding > : specified)? Does it impose some security vulnerabilities? > > These headers just provide more information to the mail client so that > it can properly handle and display the message. Some mail clients may > be more error-tolerant than others. But really you don't want your > messages to be handled and displayed incorrectly. Just as your PHP code > should generate HTML-compliant web pages, your code should also generate > correctly format email messages. > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php