I'm trying to create an email message that is in both text/plain and text/html formats using PHP.
I'm trying to follow this example: Sending an email with php plain text and html
When I open the message it is blank. I'm using the PHP mail() function.
This is the source for the email that gets created:
From - Wed Jul 16 15:54:24 2014
X-Account-Key: account2
X-UIDL: UID17453-1394824486
X-Mozilla-Status: 0001
X-Mozilla-Status2: 00000000
X-Mozilla-Keys:
Return-path: <energy@vps.corporations.org>
Envelope-to: aaron@campusactivism.org
Delivery-date: Wed, 16 Jul 2014 15:55:11 -0400
Received: from vps.corporations.org ([69.73.133.204]:35077)
by vortex.nocdirect.com with esmtps (TLSv1:DHE-RSA-AES256-SHA:256)
(Exim 4.82)
(envelope-from <energy@vps.corporations.org>)
id 1X7VIA-002zYn-7q
for aaron@campusactivism.org; Wed, 16 Jul 2014 15:55:11 -0400
Received: from energy by vps.corporations.org with local (Exim 4.82)
(envelope-from <energy@vps.corporations.org>)
id 1X7VI9-00022J-Rw
for aaron@campusactivism.org; Wed, 16 Jul 2014 15:55:05 -0400
To: aaron@campusactivism.org
Subject: New Test Subject -- aaron@campusactivsim.org--Test
X-PHP-Script: www.energyjustice.net/action/thanks.php for 68.57.17.14
From: d d <dad@dadssdd>
Reply-To: dad@dadssdd
X-Mailer: PHP/5.2.9
MIME-Version: 1.0
Content-Type: multipart/alternative; boundary="1kf9a19f031518xd151gkd"
Message-Id: <E1X7VI9-00022J-Rw@vps.corporations.org>
Date: Wed, 16 Jul 2014 15:55:05 -0400
X-AntiAbuse: This header was added to track abuse, please include it with any abuse report
X-AntiAbuse: Primary Hostname - vps.corporations.org
X-AntiAbuse: Original Domain - campusactivism.org
X-AntiAbuse: Originator/Caller UID/GID - [513 513] / [47 12]
X-AntiAbuse: Sender Address Domain - vps.corporations.org
X-Get-Message-Sender-Via: vps.corporations.org: authenticated_id: energy/only user confirmed/virtual account not confirmed
X-Spam-Status: No, score=-96.2
X-Spam-Score: -961
X-Spam-Bar: ---------------------------------------------------
X-Ham-Report: Spam detection software, running on the system "vortex.nocdirect.com", has
identified this incoming email as possible spam. The original message
has been attached to this so you can view it (if it isn't spam) or label
similar future email. If you have any questions, see
root\@localhost for details.
Content preview: --1kf9a19f031518xd151gkd Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 7bit Text Mesage version goes here More text message
--1kf9a19f031518xd151gkd Content-Type: text/html; charset=iso-8859-1 Content-Transfer-Encoding:
7bit <html> <b> TEST</b> </html> [...]
Content analysis details: (-96.2 points, 8.0 required)
pts rule name description
---- ---------------------- --------------------------------------------------
-100 USER_IN_WHITELIST From: address is in the user's white-list
-0.0 T_RP_MATCHES_RCVD Envelope sender domain matches handover relay
domain
1.0 BAYES_40 BODY: Bayes spam probability is 20 to 40%
[score: 0.2211]
0.0 T_MIME_NO_TEXT No (properly identified) text body parts
2.8 MIME_PHP_NO_TEXT No text body parts, X-Mailer: PHP
X-Spam-Flag: NO
--1kf9a19f031518xd151gkd
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 7bit
Text Message version goes here
More text message
--1kf9a19f031518xd151gkd
Content-Type: text/html; charset=iso-8859-1
Content-Transfer-Encoding: 7bit
<html>
<b> TEST</b>
</html>
--1kf9a19f031518xd151gkd--
I also tried adding a header: Content-Transfer-Encoding: 7bit
using the mail function. But that didn't help.