Amazon SES sending duplicate emails - duplicates

I have switched to using Amazon SES to send our transactional alerts from our asp.net system and I'm getting calls that people are receiving duplicate emails.
I have confirmed that our program is only sending the email once to each user.
I received one of these duplicates exactly 5 minutes after the first email was sent, making me think it is some sort of retry issue.
Is there a way to configure/fix this issue?
If it makes any difference, I am using the AWS SDK in asp.net and calling the AmazonSimpleEmailServiceClient.SendEmail call.

Amazon assigns a unique message ID to every email sent. Look in the full headers of the emails you received for an ID like the following:
0000012fea2d8375-85e23920-10cf-4d1b-b237-5dc13847b66c-000000#email.amazonses.com
If it is the same in both emails you got, then there is some sort of glitch between Amazon and the receiving SMTP server that is causing it to be resent. If the ID is different between the 2 emails, then you are sending it twice.

Related

Send email from web to server using PHPMailer SMTP protocol

Hi I'm newbie here and i have a simple php form and when user submit it the data will be insert in database and email is send to user using PHPMailer; now mine question is that if i send two consecutively emails that have time difference of 1 minute then why their receiving time difference to user is 15 minutes.
Code will be provided on request.
Thanks.
Might be because of server delay are you using a shared server or maybe you mailer is miss confined

Send tons of email by message queue

I have 1 million addresses in table, and 1 function to send mail to all.
The scenario i thought is make 1 task to select all 1 million emails then send one by one OR split into smaller tasks to (such as 2 tasks with 500k emails for each).
But how i manage the log when it is fail when sent to some emails.
I don't any mail module to support. I just want to know the logic.
Edit: not only email but my app also have our notification system, do it in same way for email.
Use a legitimate bulk mail service like SendGrid.com, MailGun, etc.
If you use your own web hosted server it probably can't handle the traffic and has a good chance of ending up blacklisted so all outgoing mail will be blocked.

Salesforce Marketing Cloud mass email send

I want help from someone regarding the mass email send via Salesforce Marketing Cloud.
For example, I want to send emails to 5000 customers daily. It is a newsletter. Each days the email contents will change. There are 4 dynamic variables in my newsletter. First Name, Last Name, Email and Message.
Which is the option to send mass emails via Salesforce Marketing Cloud?
There are different options like use Data Extension, List, Triggered Send. I used triggered send (I am using PHP fuelSDK ) and it is not sending all the 5000 emails quickly (when I created a triggered send I have selected Email, List, etc). I am calling the Triggered send api 5000 times to send to each emails (It is taking more than 1.30 hours to complete). Also it is not sending email to all the 5000 email addresses. Some failure response I am getting like "Error Code: 24 - Subscriber was excluded by List Detective". I understand this. Some emails I can see "Successfully sent" response in the log. But when I check it in tracking section, those emails are not there. I don't know what is happening here.
Can any one help me to understand the problem?

How to send bulk mails using Mandrill in Drupal 7

I have an email to be sent to nearly 30,000 users. For this I have installed and configured the Mandrill module for Drupal 7, but I don't know how to start sending emails to my list. Do I need to install any other module?
From Mandrill's help:
Lists cannot be uploaded or stored in Mandrill. Recipient or subscriber lists should be managed in your own database or application. Then, when you're reading to send an email, recipient information is passed to Mandrill in your API request or SMTP message.
Note: If you're looking for a service that provides list-management services as well as the ability to create and track bulk emails, check out MailChimp.
Import your list of 30k emails to a table in your database.
Make another table called sent_emails, where it stores a string for sql, a text column for the html in the email, another text column for a text email, a string column for a subject, the date and time you want the emails to be sent
Cron up a bash script that runs every minute and checks for records in the sent_emails table and if so sends the email to the specified list of user ids that gets generated from the sql
Yes as #datashaman said, email lists cannot be imported into Mandrill or any other SMTP email gateways like SendGrid, Amazon SES, MailGun, etc.
But you can use 3rd party email clients or email marketing applications, like Sendy to easily integrate Mandrill. You can check Sendy installation services like, easysendy, which can get all these done for you.
Using Sendy you can manage the list of email subscribers and send emails through the SMTP gateways of your choice.

Retrieve SMTP response of a mail

Is it possible to retrieve the SMTP response of a mail. For example, I am sending a mail to non existing email id. Surely our server will send us a mailer daemon failure mail to our mail id. I need to capture that failure mail.
How its possible? please explain me. Some time we may enter more than one non existing email id, so i have to retrieve all the failure mail alone for every corresponding emails
Please guide me!
Thanks in advance,
Praveen J
I think I understood your question correctly now. As I understand, you are writing an application to send mail. And in your application, whenever you send a mail, you also want verify that if mail was delivered and also if it was not delivered then you want to get hold of the failure message in your application. Is that how you mean?
Well, if that is how you mean, then I think it is impossible to track the mail status with your apllication code. For instance if you are using java sendMail in your apllication you can only ensure that the send happened from your code successfully(without any send exceptions like java.net.SocketException or javax.mail.MessagingException). But, you can never ensure if the mail really reached the recepient. i.e. you can never track in your application if the mail was rejected due to wrong recepient address or any other error like illegal attachment at receipient mail server or errors like blocked sender id etc.
That is because any such error condition will be communicated by the receipient mail server to the sending mail server the information of which is present in the sent mail's header.
Does that answer your question? (Or did I understand your question correctly? ;-))
I am not sure if I am getting your question right. If you send an email to any non existent address say xxx#gmail.com from your address yyy#yourhost.com, the mail server at gmail.com replies to the mail server at yourhost.com with failure message and reason, with your delivery address and you receive the fialure mail automatically. you don't have to do anything extra in this.
If you are talking about seeing mail headers, then it depends on which client you are using. For instace, if you are using MS outlook, you can right-click on the message and click options and then see internet headers section to get mail headers. If you are using some web based mail then i am sure there will some option to view detailed mail headers.
The bounced messages are going to return to a mailbox. You should be able to configure that mailbox by properly setting the headers on the messages you send out. You would then need to monitor that mailbox, or have that mailbox deliver the messages to your program.
I would suggest you consider using VERP for all messages you send out. It will make it much easier for you to identify which email address a particular bounce belongs too. To do this you would need control of your mail server though. It takes some work configuring things.
To answer the question with more detail you need to tell us how your are sending messages, what type of mail server you are running, and how much control you have over the mail server.
On Unix, you can use "procmail" for this. Procmail is a service which can intercept your mails and process them following rules.
If you can access your mail my IMAP, I suggest to look at the Python module imaplib.