Quantcast
Channel: CodeIgniter Forums - All Forums
Viewing all articles
Browse latest Browse all 14114

Broken html email?

$
0
0
Not sure when it broke... but i haven't been able to send an html email in some time. The email comes through as blank. Subject line reads ok. Text only email works fine. HTML fails. Thoughts?

Thanks.

------------------------------

- CI 3.1.6
- Not extending Mail library.

This is the test...
PHP Code:
ci()->email
 
->initialize(array('mailtype' => 'html'))
 ->
to(ci()->user->email_address)
 ->
from(config_item('email_from_automated'))
 ->
subject('Your Purchase Receipt')
 ->
message('<html><head></head><body><p>This is a test body</p></body></html>')
 ->
send(); 

This is what my mail reader is showing me as the raw email body:
Code:
Return-Path: <someone@theserver.com>
Delivered-To: me@whereiam.com
Received: from mailserver.whereiam.com
by mailserver.whereiam.com with LMTP id ICE0A1JU/lkcQwAAjtiaIg
for <me@whereiam.com>; Sat, 04 Nov 2017 19:59:14 -0400
Return-path: <someone@theserver.com>
Envelope-to: me@whereiam.com
Delivery-date: Sat, 04 Nov 2017 19:59:14 -0400
Received: from [xxx.xxx.xxx.xxx] (port=49603 helo=586589-www1.theserver.com)
by mailserver.whereiam.com with esmtp (Exim 4.89)
(envelope-from <someone@theserver.com>)
id 1eB8LJ-0004Rz-2U
for me@whereiam.com; Sat, 04 Nov 2017 19:59:13 -0400
Received: by 586589-www1.theserver.com (Postfix, from userid 48)
id 44592C3A2156; Sat,  4 Nov 2017 18:58:33 -0500 (CDT)
To: me@whereiam.com
Subject: =?UTF-8?Q?Your=20Purchase=20Receip?==?UTF-8?Q?t?=
Date: Sat, 4 Nov 2017 23:58:33 +0000
From: "The Server" <someone@theserver.com>
Reply-To: <someone@theserver.com>
User-Agent: CodeIgniter
X-Sender: someone@theserver.com
X-Mailer: CodeIgniter
X-Priority: 3 (Normal)
Message-ID: <59fe542940f0d@theserver.com>
Mime-Version: 1.0
Content-Type: multipart/alternative; boundary="B_ALT_59fe5429412f7"
X-Spam-Status: No, score=1.1
X-Spam-Score: 11
X-Spam-Bar: +
X-Ham-Report: Spam detection software, running on the system "mailserver.whereiam.com",
has NOT identified this incoming email as spam.  The original
message has been attached to this so you can view it or label
similar future email.  If you have any questions, see
root\@localhost for details.

Content preview:  Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding:
   8bit This is a test body [...]

Content analysis details:   (1.1 points, 5.0 required)

 pts rule name              description
---- ---------------------- --------------------------------------------------
-1.9 BAYES_00               BODY: Bayes spam probability is 0 to 1%
                            [score: 0.0031]
 0.0 T_TVD_MIME_NO_HEADERS  BODY: No description available.
 1.0 KAM_LAZY_DOMAIN_SECURITY Sending domain does not have any
                            anti-forgery methods
 2.0 RDNS_NONE              Delivered to internal network by a host with no rDNS
 0.0 T_MIME_MALF            Malformed MIME: headers in body
X-Spam-Flag: NO

This is a multi-part message in MIME format.

Your email application may not support this format.



--B_ALT_59fe5429412f7

Content-Type: text/plain; charset=UTF-8

Content-Transfer-Encoding: 8bit




This is a test body





--B_ALT_59fe5429412f7

Content-Type: text/html; charset=UTF-8

Content-Transfer-Encoding: quoted-printable




=3Chtml=3E=3Chead=3E=3C/head=3E=3Cbody=3E=3Cp=3EThis is a test body=3C/p=3E=
=3C/body=3E=3C/html=3E



--B_ALT_59fe5429412f7--

Viewing all articles
Browse latest Browse all 14114

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>