We have certainly come to a point when developing an application where we needed to send emails from the application , the system requires to send outgoing mail which can come from various areas they can be monitoring , alerting batch processing . You may be not want to setup a different server for smtp or run it on-prem for only setting these feature. Amazon simple Email Service (SES) is a service provided by AWS for you to allow sending mails from any kind of application . Below shows the simplified architecture of how a SES works with an EC2 Instance to let users get a Email from the application.
Prerequisites
At first we need to have an AWS account with an ec2 instance running an application . For the current configuration i have an EC2 instance that is running a php application , after you setup your application proceed to the SES service.
From the above select the SMTP settings and click on the Create SMTP credentials .
The IAM account will be created automatically assigning the required policy
The credentials are provided as shown in the above diagram , copy the required information.
Now everything is set to go , but you may want to create identities which can be used to send emails from , it can be of your custom domain type or
Click on Create identites.
The above shows the Email address identity verification , after creating it you will get verification code to the email you have set .
You can use domain verification too if you own a domain .
For verification add these CNAME records to the DNS records of your domain. After that your domain or the email address you have configured is shown as verified as shown in the figure above.
You can now use the provided configurations like smtp endpoint , ports , SMTP username and password and set it to the application code and it will work perfectly.
Top comments (0)
Some comments may only be visible to logged-in visitors. Sign in to view all comments.