ShibSta Posted May 19, 2009 Share Posted May 19, 2009 I'm sending an email using PHP and everything is working fine. However, Thunderbird is not rendering the HTML. I sent the same email to Hotmail and the HTML is shown perfectly. To further debug the issue, I sent an HTML email from Hotmail to my Thunderbird account and the HTML rendered fine. Therefore, I have reason to believe that my PHP is at fault and it's not a Thunderbird configuration that's incorrect. Here is the source of my email, do you see anything wrong with it? X-Account-Key: account4 X-UIDL: UID260-1192604431 X-Mozilla-Status: 0001 X-Mozilla-Status2: 00000000 X-Mozilla-Keys: Return-path: <[email protected] FOR FORUMS--.com> Envelope-to: me@--REMOVED FOR FORUMS--.com Delivery-date: Tue, 19 May 2009 11:10:57 -0400 Received: from nobody by alpha.--REMOVED FOR FORUMS--.com with local (Exim 4.69) (envelope-from <[email protected] FOR FORUMS--.com>) id 1M6Qy1-000306-0T for me@--REMOVED FOR FORUMS--.com; Tue, 19 May 2009 11:10:57 -0400 To: me@--REMOVED FOR FORUMS--.com Subject: This is a test!! MIME-Version: 1.0 Date: Tue, 19 May 2009 11:10:56 -0400 X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: PHP Mailer From: "--REMOVED FOR FORUMS--" <support@--REMOVED FOR FORUMS--.com> Content-Type: multipart/alternative; boundary="----=_BASE_BOUNDRY_R3E.0B4E.2C9C0A9S8.E7E4L4DY" Message-Id: <[email protected] FOR FORUMS--.com> This is a MIME encoded message. ------=_BASE_BOUNDRY_R3E.0B4E.2C9C0A9S8.E7E4L4DY Content-Type: text/html; charset="utf-8" <b><a href="http://www.google.com">We have HTML capability!</a></b><br /><br /><i>But this is just a test...</i> ------=_BASE_BOUNDRY_R3E.0B4E.2C9C0A9S8.E7E4L4DY Content-Type: text/plain; charset="utf-8" We have HTML capability! But this is just a test... Thanks Link to comment https://forums.phpfreaks.com/topic/158762-solved-php-mail/ Share on other sites More sharing options...
Masna Posted May 19, 2009 Share Posted May 19, 2009 Perhaps you could post the code that is sending these e-mails? Link to comment https://forums.phpfreaks.com/topic/158762-solved-php-mail/#findComment-837331 Share on other sites More sharing options...
ShibSta Posted May 19, 2009 Author Share Posted May 19, 2009 The code is irrelevant as I've proven so in debugging.... Thunderbird doesn't like something about the email's source and I can't figure out what it is. Thanks Link to comment https://forums.phpfreaks.com/topic/158762-solved-php-mail/#findComment-837364 Share on other sites More sharing options...
ShibSta Posted May 19, 2009 Author Share Posted May 19, 2009 After further debugging, I've realized that Thunderbird is simply crying over the fact that text/html is coming before text/plain... I swapped the two and placed the text/plain first and text/html second in the mail and now everything is working. Thanks anyway. Link to comment https://forums.phpfreaks.com/topic/158762-solved-php-mail/#findComment-837373 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.