For a few weeks now we have been sending emails using a PHP script that are html based. The html is extremely simple and has been made even more simple in light of this problem. We have been using the attached script with no success.
The exact script was working for sometime, but is no longer working. The script works perfectly fine when being sent to other emails (other than our exchange accounts, ie, gmail and yahoo). Also, when the script is executed from a different web server, the emails come in, HTML based, perfectly fine.
We have Exchange Server 2003 running as our only email server for the company and we are using Trend Micro for our Anti Virus and email scanner software. No matter who receives the email with in the company, the html emails are displayed purely as text, as displayed in the code block.
Is there a setting in exchange that is now preventing the HTML from being translated? The emails look like this no matter where they are viewed from, ie, MS Outlook, OWA, or Windows Mobile phones.
I spoke with the server admins who are hosting the server, and they said they have not changed anything on the server that would prevent the HTML from being displayed.
Thanks a lot for any help.
// Test of HTML email for RMTA
$headers = "From: NoReply@mywebsite.org\r\n";
$headers .= "Content-type: text/html;\r\n";
$to = "firstname.lastname@example.org";
$subject = "Test HTML mail";
$message = "<html><head></head><body><b>Hello!</b><br><table border=\"1\" width=\"400\"><tr><td> This is a simple email message</td></tr></table></body></html>";
echo "Mail Sent - ". $to;
Email Messages look like:
Date: Tue, 4 Nov 2008 10:28:48 -0700 (MST)
X-OriginalArrivalTime: 04 Nov 2008 20:16:41.0500 (UTC) FILETIME=[3FFAA5C0:01C93EBA]
<html><head></head><body><b>Hello!</b><br><table border="1" width="400"><tr><td> This is a simple email message</td></tr></table></body></html>