Outlook 2007 - Does not display html correctly

Posted on 2009-04-20
Medium Priority
Last Modified: 2013-12-17
I have a form that emails out, via PHP, and then redirects to PayPal. The form emails out to 4 people, 2 are using outlook 2003 and 2 are using outlook 2007. Both 2003 users get the email fine. One of the 2007 users gets the email fine the other gets the email as plain text instead of HTML. I have tried changing the settings for plain text and email with no luck. I was able to change the PHP email headers to get the message to display the HTML. I now have the mail servers spam assasin bleeding over into the email on the one user using 2007 outlook. The other 3 users still recieve the message fine.
$to      = 'administrator@website';
$subject = "subject";
$message = "content";
$headers = 'Content-type: text/html;' . "\r\n";
$headers .= 'From: noreply@website.com' . "\r\n";
mail($to, $subject, $message, $headers);

Open in new window

Question by:tech1984
1 Comment

Accepted Solution

Gudorian earned 2000 total points
ID: 24196000
Test the below code. Hope this helps.

// Tobias

$headers  = 'MIME-Version: 1.0' . "\r\n";
$headers .= 'Content-type: text/html; charset=utf-8' . "\r\n"; 
$headers .= 'To: '.$to.' <'.$to.'>' . "\r\n";
$headers .= 'From: Website <noreply@website.com>' . "\r\n";
$headers .= 'Cc: ' . "\r\n";
$headers .= 'Bcc: ' . "\r\n";

Open in new window


Featured Post

Visualize your virtual and backup environments

Create well-organized and polished visualizations of your virtual and backup environments when planning VMware vSphere, Microsoft Hyper-V or Veeam deployments. It helps you to gain better visibility and valuable business insights.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

It’s a season to be thankful, and we’re thankful for users like you who engage on site, solve technology problems, and network with others in the industry. What tech are we most thankful for? Keep reading.
Mailbox Corruption is a nightmare every Exchange DBA wishes he never has. Recovering from it can be super-hectic if not entirely futile. And though techniques like the New-MailboxRepairRequest cmdlet have been designed to help with fixing minor corr…
To show how to create a transport rule in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.: First we need to log into the Exchange Admin Center. Navigate to the Mail Flow >> Rules tab.:  To cr…
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.
Suggested Courses
Course of the Month14 days, 18 hours left to enroll

840 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question