RE: [PHP] Complications when sending HTML email
| From: | Weber Sites LTD | Date: | Tue, 14 Feb 2006 09:26:39 +0000 |
| Subject: | RE: [PHP] Complications when sending HTML email | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-230351@lists.php.net to get a copy of this message | ||
Did you put this in your headers?
MIME-Version: 1.0\r\nContent-Type: text/html; charset=iso-8859-1\r\n
<?
mail("peter@lauri.se","HTML
TEST","<HTML><BODY><B>Test</B></BODY></HTML>","MIME-Version:
1.0\r\nContent-Type: text/html;
charset=iso-8859-1\r\nFrom:peter@lauri.se\r\n");
?>
Sincerely
berber
Visit the Weber Sites Today,
To see where PHP might take you tomorrow.
PHP code examples : http://www.weberdev.com
PHP & MySQL Forums : http://www.weberforums.com
Learn PHP & MySQL Playing Trivia : http://www.webertrivia.com
PHP Web Logs : http://www.weberblogs.com
Web Development Index http://www.weberindex.com
Web Templates http://www.webertemplates.com
Search for PHP Code from your browser http://toolbar.weberdev.com
Free Uptime Monitor : http://uptime.weberdev.com
PHP content for your site : http://content.weber-sites.com
-----Original Message-----
From: Peter Lauri [mailto:peter@lauri.se]
Sent: Tuesday, February 14, 2006 6:52 AM
To: php-general@lists.php.net
Subject: [PHP] Complications when sending HTML email
Best group member,
I am sending HTML email with PHP. I use the example code in the manual to
try, and the email is sent. However, it is not decoded correctly in my
Outlook. I checked thru webmail clients, and then it work. I thought it was
my Outlook that was not correct, but I am receiving HTML emails from other
sources that are displayed correctly. In the bottom I have the email that is
sent to me, it is displayed like this in Outlook.
Is there maybe something I have to add in the header to get it to work with
Outlook?
Cheers,
Peter
-----Original Message-----
From:
Sent: Tuesday, February 14, 2006 11:31 AM
Subject: Birthday Reminders for August
Content-type: text/html; charset=iso-8859-1
To: Peter <peter@lauri.se>
From: Testserver <robot@trydws.com>
<html>
<head>
<title>Birthday Reminders for August</title>
</head>
<body>
<p>Here are the birthdays upcoming in August!</p>
<table>
<tr>
<th>Person</th><th>Day</th><th>Month</th><th>Year</th>
</tr>
<tr>
<td>Joe</td><td>3rd</td><td>August</td><td>1970</td>
</tr>
<tr>
<td>Sally</td><td>17th</td><td>August</td><td>1973</td>
</tr>
</table>
</body>
</html>
--
PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:
http://www.php.net/unsub.php