467,166 Members | 1,084 Online
Bytes | Developer Community
Ask Question

Home New Posts Topics Members FAQ

Post your question to a community of 467,166 developers. It's quick & easy.

Getting html code while recieving email in outlook.

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: sonalimalhotra2007@gmail.com
  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
  23. rizwan.shah@e-ngageit.co.uk</title>
  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
  • viewed: 2536
1 Reply
Expert Mod 8TB
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.

Similar topics

13 posts views Thread by Ammar | last post: by
5 posts views Thread by Mike | last post: by
17 posts views Thread by Lloyd Sheen | last post: by
8 posts views Thread by AC | last post: by
9 posts views Thread by Microsoft News Server | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.