- Configuring Fluent SMTP with Amazon SES
- Obtain Access Key, Secret Key, and Region from AWS Console
- Fluent SMTP AWS SES Settings
- Additional Resources
Amazon SES is the cheapest email API service for WordPress. With Fluent SMTP SES Connection, you get the powerful, low-cost, high-deliverability managed infrastructure from Amazon. With the support of Fluent SMTP, it’s super easy to set up and configure Amazon SES API and send all your WordPress emails. The integration is with amazon’s latest SES API so your emails will be delivered faster and the right way.
In this article, you will learn how to use Amazon SES Email Delivery Connection with Fluent SMTP.
Configuring Fluent SMTP with Amazon SES #
Please follow the below sections to configure Amazon or AWS SES Emails with Fluent SMTP.
Add New Amazon SES Connection #
If you already have any other configured connection, then you will be in the Fluent SMTP Dashboard.
Please go to WordPress Settings ⮕ Fluent SMTP ⮕ Settings ⮕ Add Another Connection
If you haven’t set up any SMTP Connection yet, you will be directed to configure a connection automatically.
Now from your WordPress Dashboard go to Settings ⮕ Fluent SMTP
Amazon SES Connection Properties #
After selecting AWS as the mailer, a very simple settings window will open as shown in the screenshot below.
As you can see above, we need to provide From Email, From Name, Access Key, Secret Key, and Region where the Access Key, Secret Key, and Region has to be obtained from AWS Console for the From Email we are going to use for this AWS SES Connection. We will obtain those credentials from the following steps.
Obtain Access Key, Secret Key, and Region from AWS Console #
The Access Key, Secret Key, and Region are parts of the Amazon Web Services Console. We need to:
- Create or Register an IAM User in AWS Console.
- Select Access Key Best Practises and Create Keys.
- Retrieve Access Keys.
- Identify the Region.
Navigate to the AWS Console Dashboard #
Please go to Amazon Web Services Console Dashboard from Here: Home – AWS CONSOLE
You may be asked to log in to your account using your Root Account Email as the above screenshot. Once you are logged in you will be redirected to the AWS Console Home. Then we need to search for “IAM” in the top search bar as the below screenshot.
Add a New IAM User #
To create a new user for Fluent SMTP click on the Add Users button.
Specify User Details #
Then you will be redirected to the New IAM User Creation overview page. Firstly, you will need to provide a User Name and the supported format is also instructed under the field. We provided the User Name: FluentSMTP.
Once you are done with the User Name click on the Next Button to proceed to the next step.
Set Permissions #
In this step, we need to define the Policies and Permissions required for Fluent SMTP to send emails through the new user account we are going to create.
First of all, Select “Attach Policies Directly” from the Permission Options.
Now we need to search for Permission Policies from the next section. In the Filter box, search for “sesfull” and then “snsfull”. Also, change the AND to OR between both of the filters and you will see AmazonSESFullAccess and AmazonSNSFullAccess Policies. Now check both of them as the below screenshot.
Review and Create #
If everything is correct then click on the Create User button to finally create the new user and you will be automatically redirected to the IAM Users Management again with a Success Message if everything is fine as the below screenshot.
Create Access Key and Secret Key #
Once the user is created, you can click on either the View User from the top success message or from the Users lists by clicking on the newly created User Name. Then you will be redirected to the User Overview page.
Please follow the official guide to create new access key pairs: Create an AWS access key (amazon.com)
Identify AWS Console Region #
From the Console Dashboard, on the top right corner between the UserName and the Help menu, you will find the Region you are using to create the IAM User to be used for Fluent SMTP.
Our Region is US East (North Virginia) [us-east-1]. We will be using this region in the Fluent SMTP settings in the next step.
Fluent SMTP AWS SES Settings #
We are done retrieving the Access Key, Secret Key, and Region. After providing them in the Fluent SMTP Settings, please click on the Save Connection Settings button.
AWS SES Credentials #
Access Keys Storage #
- Store Access Keys in DB: By default, this is enabled and strongly recommended. This will keep the information in the Databases in Encrypted format.
- Access Keys in Config File: This allows you to store the access keys in the following section inside the wp-config.php file by the following directives.
Simply copy the following snippet and replace the stars with the corresponding credential. Then simply paste it to the wp-config.php file of your WordPress installation
define( 'FLUENTMAIL_AWS_ACCESS_KEY_ID', '********************' ); define( 'FLUENTMAIL_AWS_SECRET_ACCESS_KEY', '********************' );
That’s all about Configuring Fluent SMTP with Amazon Web Services or AWS SES(Simple Email Service) to send emails from the WordPress website. Additionally, it is recommended to Send a test email, Test Email Confirmation and then Confirm Test Email Deliverability.
Additional Resources #
Moving out of the Amazon SES Sandbox #
A new AWS Console account will be in the Sandbox Mode by default. In this mode you will only be able to simulate or practise sending emails to only to your own email addresses upon verifying them under Verified Identities. To send emails to the users or realtime email sending, you need to go live from sandbox mode, Submit a request to AWS Support for Production Access to make your SES account go live from Sandbox. Please checkout this official resource: Moving out of the Amazon SES Sandbox