How to Use Amazon SES to Send Email

Amazon Web Services

Let’s see how to send your first email using Amazon Simple Email Service (SES). In this article, you will learn, step by step, how to configure Amazon SES to send email.

There are three ways to send an email using Amazon SES:

  • using the console
  • using the Amazon SES SMTP interface
  • using the API

In this AWS SES tutorial, we will use the SES console to send emails.

Of AWS Management Console, search for a “simple messaging service” and open the Amazon SES console.

Checking an email address

The first thing we need to do is configure an email address from which we will send to do this. We must first verify that we are the owner of the email address we use.

Let’s continue and click on Mail Addresses to the left.

We currently have no verified email addresses, so click Check a new email address.

A dialog box will appear telling us that the verification email has been sent to this address.

Let’s go to the email client.

When this verification is complete, return to the SES console. Now when I refresh my list. You can see that my new email address has verified status.

We can now send an email.

Sending a formatted test email

Select the verified email address, then click Send a test email.

In this dialog, we have a few options for email.

I can toggle more options by clicking on the More options link to see some additional fields that I can fill in as you can see below, but let’s stay with a simple email for now (no pun intended).

in the AT , enter the email address you just verified. If you are a new SES user, you will only be able to send to verified recipients because your account will be in a test environment called Amazon SES Sandbox. You can then ask to leave the sandbox to lift the recipient’s address restriction.

In the subject, enter Test in SES format then add text in the body. Now click on Send a test email. You should receive an email.

Sending a raw email

Now send an email in raw format. I will resend this email to the same verified address. One thing you will notice is that I no longer have the option to see more options and Material the field is no longer available. These fields should be specified in the message box.

I will paste an example of formatted text for this email. Note that I specify the subject in the message field. This is also where you would specify some of the other options that you saw previously under More options.

Send the email, then check your email client. When you open it, you will see that the text has been formatted as you specified in the SES console.

SES sending statistics

To return to the SES console, click Sending statistics. The first thing you will notice is the large blue text box which tells us that this SES account currently has sandbox access.

To start sending emails without the sandbox limitation, you will need to click Request an increase in the sending limit. Then you will need to complete this form to submit a new case. I’m not going to go through here.

Sending limits

If we scroll down the send statistics page, we have some statistics related to our send limits. You can see here how you are doing on our current send limit. I have sent a few emails here from the tests in this article, but I can see that I am well below my 200 emails per 24 hour period.

A little further, we can see some SES measures that will show the number of emails delivered, refusals, bounces and complaints.

Summary

Amazon’s SES functionality is a great way to send bulk emails. I hope this article has given you a head start on getting started with SES and how to use it to start sending emails.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.