Re: HTML E-mails
| From: | Manuel Lemos | Date: | Mon, 22 Jul 2002 11:27:31 +0000 |
| Subject: | Re: HTML E-mails | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-108846@lists.php.net to get a copy of this message | ||
Hello,
On 07/20/2002 07:14 PM, Alex Kirk wrote:
I've just set out to build a PHP-based mail system that will be able to send HTML e-mails to a variety of mail clients. So far, I'm having moderate success: I can get Yahoo! and Hotmail to see the HTML, but not Netscape Mail or Outlook Express. I was wondering, is there anything special I should be putting in my mail() call to achieve broad compatibility? I'm already sending a header that includes: MIME-Version: 1.0\r\n Content-type: text/html; charset=iso-8859-1\r\n Also, does anyone know of a list of mail client compatiblity levels with HTML e-mail?Just avoid using Javascript because most mail programs will disable it. Other than that you ought to always send multipart-alternative MIME messages where the HTML version is indeed an alternative to a text version of your message. If you do not do that, some people will discard your messages confusing them with SPAM, unless what you are sendind is really solicited mail. -- Regards, Manuel Lemos