Welcome to WebmasterWorld Guest from

Forum Moderators: coopster & jatar k

Message Too Old, No Replies

Mime Types

4:36 pm on Jan 11, 2005 (gmt 0)

10+ Year Member


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\" <webmaster@domain.com>\r\n";
$headers .= "Reply-To: \"domain\" <webmaster@domain.com>\r\n";
$headers .= "X-Priority: 3\r\n";
$headers .= "X-MSMail-Priority: High\r\n";
$headers .= "X-Mailer: Just My Server";

Thanks :o)

5:40 pm on Jan 11, 2005 (gmt 0)

WebmasterWorld Administrator jatar_k is a WebmasterWorld Top Contributor of All Time 10+ Year Member

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)

10+ Year Member

Hi Jatar_k

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.


woldie. o:)


Featured Threads

Hot Threads This Week

Hot Threads This Month