By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,274 Members | 2,229 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,274 IT Pros & Developers. It's quick & easy.

Getting html code while recieving email in outlook.

P: 245
I have read an email template and sending emails through php mail function. It shows html code when i open that received email in outlook express but it shows normal content in hotmail, yahoo, gmail account.

This is how it view me HTML code in outlook

Expand|Select|Wrap|Line Numbers
  1. ----Original Message-----
  2. From:
  3. Sent: None
  4. To: <email removed>
  5. Subject: File Uploaded by <email removed>
  7. Content-type: text/html; charset=iso-8859-1
  9. From: <email removed>
  11. Sender: <email removed>
  13. cc:
  15. Message-Id: <20090312115233.BC591A805A<email removed>>
  16. Date: Thu, 12 Mar 2009 07:52:33 -0400 (EDT)
  20.                        <html>
  21.                                <head>
  22.                                        <title>File Uploaded by
  24.                                </head>
  25.                                <body>
  26.                                        <table cellspacing='0'
  27. cellpadding='0' border='0' align='left' width='570'>
  28.                                                <tr><td><font
  29. style='font-family:Trebuchet
  30. MS;font-size:20px;color:#ff4800;font-weight:bold;'>Dear
  31. Administrator</font></td></tr>
  32.                                                <tr><td>&nbsp;</td></tr>
  33.                                                <tr><td><font
  34. style='font-family:Trebuchet
  35. MS;font-size:12px;color:#000000;'><email removed> upload a
  36. file.</font></td></tr>
  37.                                                <tr><td>&nbsp;</td></tr>
  38.                                                <tr><td><font
  39. style='font-family:Trebuchet MS;font-size:12px;color:#000000;'>Please check
  40. and assign it to the relevant person. Thanks!</font></td></tr>
  41.                                                <tr><td><font
  42. style='font-family:Trebuchet
  43. MS;font-size:12px;color:#000000;'>..........................................
  44. ............................<br />Please do not reply to this email, as this
  45. mailbox is not monitored.<br /><a href='http://www.example.come'>Square
  46. Marble</a></font></td></tr>
  47.                                        </table>
  48.                                </body>
  49.                        </html>

Can somebody help me to sort out my this problem too. Please
Mar 13 '09 #1
Share this Question
Share on Google+
1 Reply

Expert Mod 5K+
P: 8,639
maybe outlook express doesn't support or misinterprets (as text) the html mail. this could be due to settings or insufficient headers....

you may try multipart emails (text and html part)

I recommend using a Mail Class (e.g. Swift Mailer), this makes writing emails much easier than the built in mail() function.
Mar 13 '09 #2

Post your reply

Sign in to post your reply or Sign up for a free account.