CodeIgniter Forums

Full Version: Email contains limited content or 'MIME format' in text - Sporadically but often in Hotmail
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

El Forum

[eluser]Ben Bowler[/eluser]
I have a really random issue coming up today. We send out a good number of each day and since a change in server some (but a significant proportion) of messages have arrived to Hotmail (almost exclusively) users missing half of the content or like below.

All of the cut off messages seem to start at the second * symbol. Could it be the encoding of this that's causing the issue?

This is the code that sends the email:

Code:
$this->ci->email->clear();
            $config['mailtype'] = $this->ci->config->item('email_type', 'email');
            $this->ci->email->initialize($config);
            $this->ci->email->set_newline("\r\n");
            $this->ci->email->from($this->ci->config->item('admin_email'), $this->ci->config->item('site_title'));
            $this->ci->email->to($destination_address);
            $this->ci->email->bcc('[email protected]'); // Also send to me to keep track
            $this->ci->email->subject($this->ci->config->item('site_title') . ' - eTicket for ' . $event_name);
            $this->ci->email->message($message);

            if ($this->ci->email->send() == TRUE)
            {
                // Return the iTicket ID's etc...
                return $response;
            } else {
                return FALSE;
            }

Code:
-----Original Message----- Sent: Monday, July 18, 2011 12:01 AM
To: [email protected]

Subject: UKF Live - eTicket for The Modestep Summer Carnival

Date: Sun, 17 Jul 2011 23:01:13 +0000

From: "UKF Live" <[email protected]>
Reply-To: "[email protected]" <[email protected]>
X-Sender: [email protected]
X-Mailer: CodeIgniter
X-Priority: 3 (Normal)
Message-ID: <[email protected]>
Mime-Version: 1.0
Content-Type: multipart/alternative; boundary="B_ALT_4e2369b952f05"
Return-Path: [email protected]
X-OriginalArrivalTime: 17 Jul 2011 23:01:13.0963 (UTC) FILETIME=[6D50B3B0:01CC44D5]




This is a multi-part message in MIME format.
Your email application may not support this format.

--B_ALT_4e2369b952f05
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit


Modestep's Summer Carnival

11th August at 19:00 - 11th August at 23:00

@ The Garage20-22 Highbury Corner LondonN5 1RD


Strictly over 14's only
Please bring id

TICKET VALID FOR 1 PERSON(S) *

Booking reference 628963


* Print this ticket out and take it to the event to be scanned upon entry.

This document is your ticket and the barcode is required for entry. Do not
purchase this print-out from someone else, it may be a counterfeit photocopy
and will not give you entry to the event.

Selected terms &amp; conditions. View complete Terms &amp; Conditions

Tickets sold subject to the promoters right to alter or vary the programme
due to events or circumstances beyond its control with being obliged to
refund monies or exchange tickets. Promoters and venues always reserve the
right to refuse admission to an event and your ticket is issued subject to
the rules and regulations of the venue and promoter. We will not offer
refunds to any ticket-holder who is refused entry. UKF Live does not accept
responsibility for the loss, damage or destruction of your personal
property.
Ticket holders consent to filming and sound recording as members of the
audience.


--B_ALT_4e2369b952f05
Content-Type: text/html; charset=utf-8
Content-Transfer-Encoding: quoted-printable

<img  />
<h1 style=3D"font-size: 15pt; text-transform: uppercase; color: #3e3b3b=
">Modestep's Summer Carnival</h1>
<h2 style=3D"font-size: 15pt; text-transform: uppercase; color: #8e8e8e=
">
11th August at 19:00 - 11th August at 23:00 </h2>
<h2 style=3D"font-size: 15pt; text-transform: uppercase; color: #8e8e8e=
">
@ The Garage 20-22 Highbury Corner London N5 1RD </h2>
<h2 style=3D"font-size: 15pt; text-transform: uppercase; color: #8e8e8e=
">
Strictly over 14's only<br />
Please bring id
</h2>
<img  />
=09
<h1 style=3D"font-size: 15pt; text-transform: uppercase; color: #3e3b3b=
">TICKET VALID FOR 1 PERSON(S) *</h1>
=09
<p style=3D"font-size: 10pt; color: #3e3b3b">Booking reference 628963</=
p>

<strong style=3D"font-size: 11pt; color: #3e3b3b">
* Print this ticket out and take it to the event to be scanned upon en=
try.
</strong>

<p style=3D"font-size: 9pt; color: #8e8e8e">This document is your ticke=
t and the barcode is required for entry. Do not purchase this print-out fro=
m someone else, it may be a counterfeit photocopy and will not give you ent=
ry to the event.</p><br />

<strong style=3D"font-size: 9pt; color: #3e3b3b;">Selected terms &amp; c=
onditions. <a >View complete Terms &amp; Conditions</a></strong><br />
<p style=3D"font-size: 9pt; color: #8e8e8e">Tickets sold subject to the =
promoters right to alter or vary the programme due to events or circumstanc=
es beyond its control with being obliged to refund monies or exchange ticke=

ts. Promoters and venues always reserve the right to refuse admission to an=
event and your ticket is issued subject to the rules and regulations of th=

e venue and promoter. We will not offer refunds to any ticket-holder who is=
refused entry. UKF Live does not accept responsibility for the loss, damag=
e or destruction of your personal property.=20
Ticket holders consent to filming and sound recording as members of the aud=
ience.</p><br />

--B_ALT_4e2369b952f05--

Thanks for your time.