Jump to content

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
Return-Path: <REMOVEDADDRESS>
To: REMOVEDADDRESS
From: Name Here <REMOVEDADDRESS>
Reply-To: 
Subject: Booking Confirmation
Message-ID: <edc5de8156becec1bf53e402b25c9b93@REMOVED.co.uk>
X-Priority: 3
X-Mailer: PHPMailer 5.2.7 (https://github.com/PHPMailer/PHPMailer/) 
MIME-Version: 
Content-Type: 
Content-Transfer-Encoding: 8bit
 
--Part_A_aaa4586399e49459e0dce4368165275f
 
 
 
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!,
Chris

Link to comment
https://forums.phpfreaks.com/topic/293182-php-mime-multipart-email/
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

http://www.serversmtp.com/sites/default/files/turbosmtp-dashboard-handbook.pdf

[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.

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

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

Guest
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.