Jump to content

Php Mime Multipart Email


Recommended Posts

Hey guys,
Go easy on me, I'm not a large PHP coder at all however here is the issue I am having.
I have acquired a wordpress plugin from a guy to deal with ticketing.
From this plugin I am sending out a Mime multipart message with both HTML and plain text code.
Here's the thing:
If I send this out via gmail's SMTP server the message appears perfectly, however if I send it out via pro.turbo-smtp.com it arrives as an attachment due to the fact that in transit it seems to have lost it's Mime-Version: and Content-type: headers such as displayed below:

Date: Fri, 19 Dec 2014 16:02:28 +0000
Subject: Booking Confirmation
Message-ID: <edc5de8156becec1bf53e402b25c9b93@REMOVED.co.uk>
X-Priority: 3
X-Mailer: PHPMailer 5.2.7 (https://github.com/PHPMailer/PHPMailer/) 
Content-Transfer-Encoding: 8bit
Hey Mr A Sample,
Thank you for booking with us.

I am more than positive that this is not a PHP issue due to it appearing fine via google's SMTP server, but I am just wondering if anyone has ever came across such a thing and if anyone can shed any light?
If anyone wants the PHP code I'm sure I can supply.
Many thanks in advance!,

Link to comment
Share on other sites

TurboSMTP probably removes all of your headers and creates their own to use according to the headers you provided.


Having just looked over their documentation


[on Page 16]


You will see that in order to send HTML emails, you must create your template from your online account. This is what led me to assume that they strip your headers; that, and the fact that Googlemail worked fine.

Link to comment
Share on other sites

This thread is more than a year old. Are you sure you have something important to add to it?

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.