homepage Welcome to WebmasterWorld Guest from 23.23.12.202
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Home / Forums Index / Code, Content, and Presentation / PHP Server Side Scripting
Forum Library, Charter, Moderators: coopster & jatar k

PHP Server Side Scripting Forum

    
Mime Types
woldie

10+ Year Member



 
Msg#: 6457 posted 4:36 pm on Jan 11, 2005 (gmt 0)

Hello,

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)

 

jatar_k

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



 
Msg#: 6457 posted 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

To:
From:
Subject:
Return-Path:
Reply-To:
Content-type:
Mime-Version:
X-Mailer:

woldie

10+ Year Member



 
Msg#: 6457 posted 8:54 am on Jan 13, 2005 (gmt 0)

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.

Nice.

woldie. o:)

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / PHP Server Side Scripting
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved