Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Amazon Simple Email Service (SES) - Should I use SMTP Interface or SES API?

I'm new to Amazon SES and I see that there are two ways to programmatically send emails:

  1. SES API (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/send-email-api.html)
  2. SES SMTP Interface (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/send-using-smtp-java.html)

What are the pros and cons of each method? They seem interchangeable to me, but I'd like to hear from folks who have had experience with SES.

In terms of my own requirements, I'll be sending transactional emails (i.e. receipts, account confirmation, etc.) and notification emails (i.e. "you have a new message", status change, etc.) to my users as they interact with my web and mobile app. If possible, I'd like to keep a history of all these outgoing emails.

like image 390
AlexG Avatar asked Jun 09 '15 01:06

AlexG


People also ask

Does Amazon SES use SMTP?

To send production email through Amazon SES, you can use the Simple Mail Transfer Protocol (SMTP) interface or the Amazon SES API.

What method is used to send emails with SES?

You can send an email with Amazon Simple Email Service (Amazon SES) using the Amazon SES console, the Amazon SES Simple Mail Transfer Protocol (SMTP) interface, or the Amazon SES API. You typically use the console to send test emails and manage your sending activity.

What is SMTP interface?

The Simple Mail Transfer Protocol (SMTP) is an internet standard communication protocol for electronic mail transmission. Mail servers and other message transfer agents use SMTP to send and receive mail messages.


1 Answers

The SES API ties you to AWS, the SMTP interface... well it's SMTP.

Do you foresee, in the future the need to move off AWS? Does your application already speak SMTP to another email server?

Depending on your current application it may be easier to go with SMTP.

If you're starting from scratch and don't foresee any need to move off AWS you should probably go with the SES API.

like image 155
Mircea Avatar answered Sep 28 '22 17:09

Mircea