| Welcome to WebmasterWorld Guest from 126.96.36.199 |
register, free tools, login, search, subscribe, help, library, announcements, recent posts, open posts,
|Subscribe to WebmasterWorld|
| 4:36 pm on Jan 11, 2005 (gmt 0)|
I'm having a spot of bother with mime-types.
The problem I am having is that when I send out a newsletter and I then view it using Outlook it shows HTML code. Now I've used the same code on another newsletter, and that works okay.
The code below is what I use in the $header variable. Now I'm not quite if its my code, or its something to do with mail server settings, if thats the case then I will have to contact my host.
What do you reckon?
/* To send HTML mail, you can set the Content-type header. */
$headers = "X-Mailer: DataOvation\n"; // mailer
$headers .= "MIME-Version: 1.0\r\n";
$headers .= "Content-type: text/html; charset=iso-8859-1\r\n";
$headers .= "From: \"Domain\" <email@example.com>\r\n";
$headers .= "Reply-To: \"domain\" <firstname.lastname@example.org>\r\n";
$headers .= "X-Priority: 3\r\n";
$headers .= "X-MSMail-Priority: High\r\n";
$headers .= "X-Mailer: Just My Server";
| 5:40 pm on Jan 11, 2005 (gmt 0)|
try changing the order, I have had that problem before. The mime type only worked in one specific place. I always put X headers last and use this order
| 8:54 am on Jan 13, 2005 (gmt 0)|
Many thanks for the response, yep that did work. But I think it depends on the mail server configuaration, I'm plucking straws, but thankss.
All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved