|
Email Comments, Questions and Miscellaneous Share your opinion of the email service you're using. Post general email questions and discussions that don't fit elsewhere. |
|
Thread Tools |
5 Oct 2014, 03:03 AM | #1 |
Junior Member
Join Date: Mar 2013
Posts: 19
|
Issues sending emails via Mandrill service. Sometimes messages disappear.
Hi everyone:
I've been using the Mandrill service to deliver automated emails from my web site (using their php APIs.) The service seems to work, except sometimes I get questions from my customers that claim that they never received my automated emails. Note that I do not send more than 4-5 of those automated messages a day. So the outflow is very low. The email itself is the registration instructions along with the registration code. So it shouldn't have anything too spammy in it. So I decided to make a test. I used my own hotmail account to send a test email to. So I sent the first email. It never got into my inbox. I checked spam folder, inbox, been refreshing... nothing. I waited until the next morning. Still nothing. I then tried to send another email and in that case it made through to the same hotmail account just fine. I then went to my control panel on the Mandrill web site and checked the "Outbound activity" and both of my test messages showed as "delivered", when the first one was clearly not. Worse still, it did not even show up in my Spam folder. It just disappeared without a trace. So I'm curious, if anyone else had the same issue? And if so, how to address it? |
5 Oct 2014, 03:38 AM | #2 |
Essential Contributor
Join Date: Apr 2014
Posts: 399
Representative of:
MXRoute.com |
I've not seen this happen before with Mandrill. You've confirmed that it's going from you to Mandrill, but not from Mandrill to the recipient. At that point I would say the investigation is complete when you have a statement from Mandrill and the host of the recipient. One of them either has a log that explains what happens, or one of them has an obligation to explain why they do not. If Mandrill says the recipient server took it from their hands, the recipient host has an obligation to explain why they physically took the mail and refused to deliver it or bounce it.
|
5 Oct 2014, 04:14 AM | #3 | |
Junior Member
Join Date: Mar 2013
Posts: 19
|
Quote:
As for the Hotmail (or now Outlook) logs, how can you get those? |
|
5 Oct 2014, 04:41 AM | #4 |
Essential Contributor
Join Date: Apr 2014
Posts: 399
Representative of:
MXRoute.com |
You have to go here: http://answers.microsoft.com/en-us/o...m/forum?auth=1
Rest assured that eventually, they may reply to you there, ask you to send them a private message, and then they'll tell you how to send an e-mail. In short, they have no desire to help. |
5 Oct 2014, 04:50 AM | #5 | |
Junior Member
Join Date: Mar 2013
Posts: 19
|
Quote:
In either case (even if I get those logs from Hotmail) what is the way to address this issue? I mean, I can't change the way Hotmail operates. Is there something I need to do (on my end) additionally to make it more reliable? I mean I'm OK if a user's mail settings filter off my email into Spam folder. I can always tell them to look there. I'm not OK though with messages disappearing completely. |
|
5 Oct 2014, 04:53 AM | #6 | |
Essential Contributor
Join Date: Apr 2014
Posts: 399
Representative of:
MXRoute.com |
Quote:
|
|
5 Oct 2014, 05:12 AM | #7 | |
Junior Member
Join Date: Mar 2013
Posts: 19
|
Quote:
So obviously I don't know you and you don't know me. Thus I cannot expect you to add my email into your whitelist. But when you pay money and register for my service and then don't receive an email from me (even in your spam folder) you would probably start saying bad things about my business, wouldn't you? And that's what I'm trying to avoid. |
|
5 Oct 2014, 05:21 AM | #8 | |
Essential Contributor
Join Date: Apr 2014
Posts: 399
Representative of:
MXRoute.com |
Quote:
|
|
5 Oct 2014, 08:46 AM | #9 |
Junior Member
Join Date: Mar 2013
Posts: 19
|
You know, just to update. All those "missing" emails showed up now. Almost 24 hrs later! It just baffles me. Is it Hotmail, Mandrill, something else?
|
5 Oct 2014, 02:43 PM | #10 | |
Intergalactic Postmaster
Join Date: May 2004
Location: Irving, Texas
Posts: 8,930
|
Reading received header timestamps
Quote:
|
|
5 Oct 2014, 03:00 PM | #11 |
Junior Member
Join Date: Mar 2013
Posts: 19
|
Thanks, Bill.
Here's the header from one of the messages that was delayed (with actual IDs and email addresses edited out): Code:
x-store-info:J++/JTCzmObr++wNraA4Pa4f5Xdfjfdjdsosdjjdj+obapv9lRm1QO5aFa6j9l8xH/AWlPX8Wdss442ewltmQg= Authentication-Results: hotmail.com; spf=pass (sender IP is 205.201.131.142) smtp.mailfrom=bounce-md_30010351.542fb85b.v1-58dddjskjsdjjdjhcf0e38528@mandrillapp.com; dkim=permerror header.d=mydomain.com; x-hmca=none header.id=myemail@mydomain.com X-SID-PRA: myemail@mydomain.com X-AUTH-Result: NONE X-SID-Result: NONE X-Message-Status: n:n X-Message-Delivery: Vj0xLjksieushyhwuie9MTtHRD0xO1NDTD0w X-Message-Info: NhFq/7gR1vRFsKNdsfsdfsdfA7uIyzG1gYGo6q6H/uw7GZ0RWwzsvsdfsdfn8yuOVIJ3pkqIQFSYl30fPryOANbiFdLosdf+OUlhUmzEUKfsdfsdf1Ug98KcdfsdfNZURsdfbO3TFYu Received: from mail142.wdc04.mandrillapp.com ([205.201.131.142]) by SNT004-MC2F24.hotmail.com over TLS secured channel with Microsoft SMTPSVC(7.5.7601.22712); Sat, 4 Oct 2014 14:50:29 -0700 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; s=mandrill; d=mydomain.com; h=From:Subject:To:Message-Id:Date:MIME-Version:Content-Type:Content-Transfer-Encoding; i=myemail@mydomain.com; bh=7QyCm9xvdfvdvdsWqlX8E=; b=Umuy8D+JVy42T/PJ2ufxNuvpase7bwhmMC+w+3VV0cxvsvxcvxvpI/vFNrRjf L+TtWM/Qs5aOOpnjqfBtLxcvdsdfdfgOAJA5MTdfgfdgJ9dsOBWAO Rgpdfgdfg0hrJM1cE= DomainKey-Signature: a=rsa-sha1; c=nofws; q=dns; s=mandrill; d=mydomain.com; b=ecQbQNdtRws/DB3mly741Goxcv9iqdYwL/ykVnLLsdfsdfrPPZv svTh1vYp0bsdfljKe3mdLV+ZIpk66Xm3czrcxvxcvPBzi2E Ob6sdvvvmudhF0=; Received: from pmta05.wdc01.mailchimp.com (127.0.0.1) by mail142.wdc04.mandrillapp.com id h61lq81jvjgv for <test_hotmail_acct@hotmail.com>; Sat, 4 Oct 2014 09:05:31 +0000 (envelope-from <bounce-md_30010351.542fb85b.v1-58ddf711bea94db4ae9dadecf0e38528@mandrillapp.com>) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mandrillapp.com; i=@mandrillapp.com; q=dns/txt; s=mandrill; t=1412413531; h=From : Subject : To : Message-Id : Date : MIME-Version : Content-Type : Content-Transfer-Encoding : From : Subject : Date : X-Mandrill-User : List-Unsubscribe; bh=+4MA2Jxcvxsdsvsvvsz+NvyHvmhOE=; b=IriAQsdvsdvmC7iwGvYEkqwh9JFmkyVE+F6xcvxcvxcvtsv OTBLuVTBuyuaxcvdsdfsdfsdfAzBZ7gzkzsQoNsdfsdfsdfyg178 44cxvdsvfvdfvdfvXLbNUjZ3s= From: =?UTF-8?B?U2jdusahyshsuY29t?= <myemail@mydomain.com> Subject: =?UTF-8?B?U2NyaXB0cjdushsyehyehyW5mbw==?= Return-Path: <bounce-md_30010351.542fb85b.v1-58dkdjhdhgdh@mandrillapp.com> To: =?UTF-8?B?QXBwIFVzZXI=?= <test_hotmail_acct@hotmail.com> Received: from [192.64.117.186] by mandrillapp.com id 5s938338; Sat, 04 Oct 2014 09:05:31 +0000 X-Report-Abuse: Please forward a copy of this message, including all headers, to abuse@mandrill.com X-Report-Abuse: You can also report abuse here: http://mandrillapp.com/contact/abuse?id=30010351.5 X-Mandrill-User: userid Message-Id: <30010351.20141004090531.542fb85bd79ea3.06249963@mail142.wdc04.mandrillapp.com> Date: Sat, 04 Oct 2014 09:05:31 +0000 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 04 Oct 2014 21:50:29.0163 (UTC) FILETIME=[3697DFB0:01CFE01D] |
6 Oct 2014, 05:04 AM | #12 |
Intergalactic Postmaster
Join Date: May 2004
Location: Irving, Texas
Posts: 8,930
|
According to the munged headers you posted:
|
6 Oct 2014, 07:36 AM | #13 |
Junior Member
Join Date: Mar 2013
Posts: 19
|
Thanks again, Bill.
While working on it yesterday I did discover that for some unknown to me reason the hosting company reset my DKIM settings, which might have caused some of those issues. Interestingly enough, after correcting the DKIM and SPF I resent a couple of test emails and the first one got through just fine (within seconds) while it took the second one almost 6 hours to arrive. There might be still something up with it... Man, it's all so complicated. I'm not sure about the authenticated SMTP though. Here's the actual PHP script that sends the email through Mandrill servers: Code:
$mandrill = new Mandrill($MandrillKey); $message = array( 'subject' => '=?UTF-8?B?'.base64_encode($subject).'?=', 'from_email' => $fromEmail, 'from_name' => '=?UTF-8?B?'.base64_encode($fromName).'?=', 'text' => $msg, 'to' => array(array('email' => $toEmail, 'name' => '=?UTF-8?B?'.base64_encode($toName).'?=')), 'track_opens' => true, 'track_clicks' => false, 'auto_text' => false, 'auto_html' => false ); $resAPI = $mandrill->messages->send($message); $sentStatus = $resAPI[0]["status"]; if(strcasecmp($sentStatus, 'sent') == 0) { //Sent OK } Also I'm curious about the "legally required opt-out information." Can you give some details on that? I'll include it if it's required. |
6 Oct 2014, 08:22 AM | #14 |
Intergalactic Postmaster
Join Date: May 2004
Location: Irving, Texas
Posts: 8,930
|
If you are sending commercial messages to persons who you are not in an ongoing business relationship with, you need to let them unsubscribe from your list. If you are just sending out single replies to purchases, this shouldn't be needed. I was just pointing our that since Mandrill normally is used for large commercial mailings, Hotmail might have put in special searches for opt-out messages.
If you send email which appears to be from an email client but isn't authenticated (is sent from an open relay without a password), you will be blocked by many email systems. Bill |