Member-only story

Send emails with SendGrid in a Rails Application using ActionMailer SMTP

Rutger
3 min readJun 5, 2021

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.

Generated API Key

Setting up SendGrid on our Rails Application

The author made this story available to Medium members only.
If you’re new to Medium, create a new account to read this story on us.

Or, continue in mobile web

Already have an account? Sign in

Rutger
Rutger

Written by Rutger

Software Engineer in Tokyo

No responses yet

Write a response