Re: HTML email enconding

From: Date: Mon, 24 Nov 2003 09:32:06 +0000
Subject: Re: HTML email enconding
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-170772@lists.php.net to get a copy of this message
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.

« previous php.general (#170772) next »