How to send 62000 emails for free - AMAZON SES
Tags: smtp, amazon, ses, wordpress
Published: 2022-02-06 11:09:44


## DAY 1 - AMAZON SES
[100 days of Cloud- **Day One**](https://github.com/anuvindhs/100daysofcloud)
[![Cover](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/jesk2nd3yurikl82f30e.jpg)](https://ictpro.co.nz)

[Tweet This Blog](https://link.anuvindh.com/twitter/DAY-1-AMAZON-SES-tweet.html)  - [Read on GitHub](https://github.com/anuvindhs/100daysofcloud) - [iCTPro.co.nz](https://ictpro.co.nz)

## What is Amazon SES ?
Amazon Simple Email Service (SES) is a cloud-based email service that provides cost-effective, flexible and scalable way for businesses of all sizes to keep in contact with their customers through email. In  ither words **Highly-scalable inbound and outbound email service**.

### What is the use cases ?

**SMTP Services**
Amazon SES sends email using SMTP, which is the most common email protocol on the internet. 
You can also send emails by using  diffrent  SMTP enabled programming languages and software.

example : -
#### How to Configure WordPress to Use SMTP For Sending Emails ?
its easy now with AMAZON SES, you setup it with SMTP user name and password &  SMTP credentials which i will show you below.

## Prerequisite
- AWS Account with Access to AMAZON SES ( Administrative privilages)
  
## Setup SES for your Application

###  Request for production access
First things first, as AWS will give you initially a sandbox environment only- lets request a production access.

#### Step 1 - Once you sign in goto AMAZON SES dashboard
| Screenshots  |  instructions   |
| ------------ | ------------ |
| ![Dashboard](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/6ldawvkjqfxno4xv5471.png)| - Click on to dash board and request production access. </br> - Now Choose your types of messages you plan on sending. </br> - your Website URL </br> - your Use case - Amazon doesnt like using their services for Spamming people so please donot use it for such cases.</br>- Acknowledge and Submit |

#### Step 2 - Creating  sender identity
 Once you get approval from Amazon lets go and create an Identity 

| Screenshots  |  instructions   |
| ------------ | ------------ |
|
![IverifiedIdentities](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/1xiplauimz491gbd1wk2.png)| - Goto SES and click on to Verified identities </br> - You have two options here , either you can use a domain or a email that you have access to. Lets rgister a domain for this demo|
|![domain-reg](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/dugbwmv3uvhdx3m0i9yf.png)| - Enter your domain |
|![dkim](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/81f1q1p3se8tu5dnkkiv.png)| - Make sure DKIM is enabled </br> - Now click create **Create Identity** |

#### Step 3 - Updating DNS Records
| Screenshots  |  instructions   |
| ------------ | ------------ |
| ![dkim-identified](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ihzu5ovds6q6ixhqk7ww.png) </br> 
![dns-records](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/feqhzy1ebd3vbi6i77gw.png) | - Click on to View DNS records. </br> - Update details on your Domain registrants. </br>  - Once ✅ Verified you will be able to use the SES on that specified domain | 

#### Step 4 - Test your Setup
Goto **Amazon SES** >> **Verified identities** >> Then Click **Send test email**

| Screenshots  |  instructions   |
| ------------ | ------------ |
| 
![test-smtp](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/rdff9d2jqk62r8ybniwv.png) | - Type From-address </br> - Scenario : Custom </br> - Subject : Enter a message for subject </br> - Body : A message </br> - Click **Send test  email** |
|
![test-results](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/y206o23hyaobk46r2388.png)| - Check your email, you will  be able to see the test mail delivered to your address |



#### Step 5 - Simple Mail Transfer Protocol (SMTP) settings & SMTP Credentials for your app.
| Screenshots  |  instructions   |
| ------------ | ------------ |
|
![smtp-user](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/idd30u77ytp0vll9zm40.png)|- SMTP endpoint:email-smtp.ap-southeast-2.amazonaws.com </br> - Transport Layer Security : TLS - Required </br> - Port: 25, 587 or 2587  |
| Click **Create SMTP credentials** & Create one| -You will be prompted with **Access key ID** & **Secret access key**|
</br>
Now You will be able to use AMAZON SES  for your app using Access key ID & Secret access key 

--------------------

{% user anuvindhs %}