Member-only story
Send emails with SendGrid in a Rails Application using ActionMailer SMTP

We used to send emails with Amazon Simple Email Service, but we changed to SendGrid to have more insight into our email data.
In this article, I will explain how to set up SendGrid using ActionMailer SMTP in a Rails Application.
Verify your domain
The first step we have to take is to allow SendGrid to send emails from our domain. Follow the steps on Sendgrid’s website here.
The verification can take a while, but in my case, the domain was verified in about 10 minutes.
After the setup is completed successfully, you should see the status of the domain change to verified. Just like in the image below.
Create an API Key
After verifying our domain, we have to create an API Key, follow the steps here. After creating the API Key, make sure to write it down.
The created API Key should be listed in your API Keys list in your SendGrid account like the image below.
