note 80033 modified in ref.mail by danbrown
| From: | danbrown@php.net | Date: | Sun, 17 May 2009 20:04:01 +0000 |
| Subject: | note 80033 modified in ref.mail by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-155321@lists.php.net to get a copy of this message | ||
When sending html formatted mails to gmail accounts you might notice that the html is shown in plain
text. This happens when you send from an unix system and gmail treats the "\r\n" line ends
in a wrong way. Use "\n" instead at it will be fine.
Content-Type: text/html; charset=iso-8859-1\n
instead of
Content-Type: text/html; charset=iso-8859-1\r\n
--was--
When sending html formatted mails to gmail accounts you might notice that the html is shown in plain
text. This happens when you send from an unix system and gmail treats the "\r\n" line ends
in a wrong way. Use "\n" instead at it will be fine.
Content-Type: text/html; charset=iso-8859-1\n
instead of
Content-Type: text/html; charset=iso-8859-1\r\n
http://php.net/manual/en/ref.mail.php