# Amazon SES

> Send receipts, alerts, and other emails from an app through Amazon’s email delivery service.

Web page: https://buildladder.com/tools/amazon-ses

Suppose your app sends a reminder the day before a class. Your code decides which students need a reminder and what it should say. Amazon Simple Email Service, usually called SES, takes care of sending the message from an address you verify.

Start by sending a single reminder to a verified test address. Check the sender name and class time in the inbox. New SES accounts start with sending restrictions, so check your account’s access before planning the first real mailing.

- Made by: Amazon Web Services
- Official site: https://aws.amazon.com/ses/
- Cost: New accounts start on the Essentials plan at $0.16 per 1,000 emails, or you can switch to $0.10 per 1,000 with no plan. New AWS customers get up to $200 in credits. Prices checked 2026-11-09.
- What you need first: An AWS account, and a domain you can add DNS records to.
- Who it helps: When you already use AWS, or you’ll send a lot of email and want to pay per email.
- When to skip it: If you need to email people right away. A new account can only email addresses you’ve verified until Amazon approves your request.
- Updated: 2026-11-10

## Send emails with Amazon SES

Use Amazon SES to send one email your app needs, such as a welcome note or receipt. You verify a sending domain and ask Amazon to let you email anyone.

What you’ll end up with: Your app sends one real email from your sending domain through Amazon SES, and you’ve checked that it lands in an inbox.

### You’ll need

- A website or app you started, open in your AI tool.
- PLAN.md from the Plan your idea guide.
- A domain you own, like yourname.com, and access to its DNS settings.
- AWS account (https://console.aws.amazon.com/ses/): Amazon SES bills this account for the emails you send

### Your part

- Create the AWS account and choose the Region.
- Add the DNS records where you manage your domain.
- Create the SMTP credentials and type them into your .env file.
- Fill in the request for full access.

### Step 1 of 6: Open SES and pick a Region

This step is mine to do. Walk me through it, one action at a time:
- Sign in to the AWS console, or create an AWS account.
- Open the SES console at console.aws.amazon.com/ses.
- In the top right, open the Region menu and pick the Region closest to most of the people you’ll email.
- Write down the Region’s name.

It worked when: The Amazon SES console is open in the Region you picked.

Keep for later: The Region’s name, because the other steps only work in that Region.

If something goes wrong:
- You see a Get started wizard instead of the console. That’s Amazon’s setup for first-time users. Follow it, and choose Domain when it asks what to verify. Then carry on with “Verify your sending domain”.

### Step 2 of 6: Verify your sending domain

This step is mine to do. Walk me through it, one action at a time:
- In the left menu, under Configuration, choose Identities. Then choose Create identity.
- Under Identity details, select Domain. Enter your sending domain, like updates.yourname.com. Leave out www.
- Leave the DKIM settings as they are. Choose Create identity.
- On the identity’s page, open the Authentication tab and expand Publish DNS records.
- In another browser tab, open your domain’s DNS settings. Add each CNAME record exactly as SES shows it, including any underscore.
- If your DNS settings have a proxy switch for these records, turn it off.
- Verify your own email address too, so you can test before Amazon lets you email anyone. Choose Create identity again, select Email address, and enter your email. Click the link Amazon sends you.
- Wait for your sending domain to verify. It can take up to 72 hours. While you wait, you can do “Create SMTP credentials and save them in .env”.
- Once it’s verified, ask your AI tool to help you add a DMARC record.

It worked when: Your sending domain’s Identity status says Verified, and its DKIM configuration says Successful.

Before we move on, check with me:
- Does your own email address show as Verified too?

If something goes wrong:
- It still isn’t verified after 72 hours. Compare each record with the console, letter by letter. Make sure you added them where your domain’s DNS is really managed.
- Your sending domain or your credentials have vanished from the console. Check the Region in the top right of the console. Each Region keeps its own domains and SMTP credentials, so switch back to the one you chose.

### Step 3 of 6: Create SMTP credentials and save them in .env

This step is mine to do. Walk me through it, one action at a time:
- In the SES console’s left menu, choose SMTP settings. Then choose Create SMTP Credentials. Amazon’s IAM console opens.
- Keep the suggested User Name, or type your own. Choose Create user.
- Select Show under SMTP password. Choose Download .csv file, because you can’t see the password again.
- Choose Return to SES console.
- In your product’s folder, open the file named .env. If there isn’t one, ask your AI tool to create an empty one, then open it yourself.
- Add SES_SMTP_USER= followed by the user name, and SES_SMTP_PASSWORD= followed by the password, each on its own line. Save the file.
- Delete the .csv file once both lines are saved.

It worked when: Your .env file holds your SMTP user name and password, and it is saved only on your computer.

Before we move on, check with me:
- Do both lines have no spaces around the equals sign?
- Did you create the credentials in the Region you wrote down?

If something goes wrong:
- You lost the password, or pasted it somewhere public. In the IAM console, open Users and delete that SMTP user. Then create new credentials and update your .env file.
- You see an error about permissions when you create them. Your AWS account may lack permission to create SMTP credentials. Ask whoever manages its access permissions to grant the required IAM permissions.
- Your sending domain or your credentials have vanished from the console. Check the Region in the top right of the console. Each Region keeps its own domains and SMTP credentials, so switch back to the one you chose.

### Step 4 of 6: Send one email your app needs

Read PLAN.md in this folder. It has my plan and the tools I chose.

I want my app to send one email using Amazon SES over SMTP. Pick the one email from my plan that matters most, like a welcome email after sign-up or a receipt after payment. If my plan has neither, suggest an email to me whenever someone sends my contact form. Tell me which one and wait for my OK.

Before you write code:
- Check that .env is listed in .gitignore. If it isn’t, add it. Don’t open or print .env.
- Create .env.example with only the names SES_SMTP_USER, SES_SMTP_PASSWORD and SES_REGION, and no values.
- Ask me which AWS Region I chose. I add the SES_REGION line to .env myself.
- Check Amazon’s current SES docs for the SMTP endpoint and port for my Region, and the library my framework should use.

Then build it:
- Send the email only from server code, like an API route or a server function. Never send it from the browser or the phone app.
- Read the credentials from environment variables. Never put them in code, logs or Git.
- Never use a variable name the browser or app can read, such as one starting with NEXT_PUBLIC_ or EXPO_PUBLIC_.
- If my app has no server part yet, suggest the simplest one for my setup and ask me first.
- If sending fails, log the error and keep the rest of the app working. For example, sign-up should still finish.
- Send from an address at my verified sending domain. Make the sender address one setting that’s easy to change.
- My account is in test mode, so send only to my own verified email address for now.
- Use a real sender name and an address people can reply to, not a “no-reply” address.

Keep everything that already works.

It worked when: Your app sends the email when you do the action, and it arrives at your own verified address.

Before we move on, check with me:
- Is the sender an address at your sending domain?

If something goes wrong:
- It says the credentials are wrong. Check both lines in your .env file, then restart your app so it reads the file again. Make sure the endpoint is for the Region you chose.
- Emails to anyone except you fail. That’s test mode, which only emails verified addresses. “Ask Amazon to let you email anyone” lifts it.

### Step 5 of 6: Ask Amazon to let you email anyone

This step is mine to do. Walk me through it, one action at a time:
- In the SES console’s left menu, choose Account dashboard.
- Find the notice that sending is restricted to the sandbox. Open its setup link and request production access.
- Select Transactional if your emails are things like receipts and sign-in codes.
- In Website URL, enter your site’s address. In Additional contacts, add an email where Amazon can reach you.
- Choose your Preferred contact language. Tick the Acknowledgement box only if you’ll email people who asked for it, and handle bounces and complaints.
- Choose Submit request. AWS gives an initial response within 96 hours. Approval may take longer if it needs more information.

It worked when: The Account dashboard no longer says your account is in the sandbox.

If something goes wrong:
- Amazon asks for more details. Reply with what your app does, which emails it sends, and how people sign up to get them. Ask your AI tool to help you write it.
- Your request is turned down. Make sure your website is online and shows what the app does. Then answer Amazon’s questions and ask again.

### Step 6 of 6: Check it lands in the inbox

This step is mine to do. Walk me through it, one action at a time:
- Make the email send the real way, like signing up with a new account. Use a Gmail address and one other inbox, like Outlook.
- Open each inbox. If the email isn’t there, look in the spam or junk folder.
- In Gmail, open your test email’s message details and view the original message. Check its authentication results for DMARC.
- List the emails your app sends in PLAN.md.
- If your app is online, add the SES settings from your .env file to your host’s settings. Then put it online again.

It worked when: Your email arrives in the main inbox, sent from your sending domain.

Before we move on, check with me:
- Do the sender name and address look right?

If something goes wrong:
- It lands in spam. New domains need time to earn trust. Add a DMARC record, keep the email simple, and send a few at a time at first.
- It works on your computer but not online. Your host needs the SES settings too. Add them in its settings, then put your app online again.

Compare Amazon SES with the other options: https://buildladder.com/concepts/email.md
