Re: HTML email enconding
| From: | Binay | Date: | Mon, 24 Nov 2003 10:03:57 +0000 |
| Subject: | Re: HTML email enconding | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-170774@lists.php.net to get a copy of this message | ||
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" <list-php-1@fsck.net>
To: <php-general@lists.php.net>
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