weazel91 Posted December 19, 2014 Share Posted December 19, 2014 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 Quote Link to comment https://forums.phpfreaks.com/topic/293182-php-mime-multipart-email/ Share on other sites More sharing options...
Zane Posted December 20, 2014 Share Posted December 20, 2014 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. Quote Link to comment https://forums.phpfreaks.com/topic/293182-php-mime-multipart-email/#findComment-1500139 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.