Configuration
Email

Configuration of email provider

Sendgrid

  1. Login into Sendgrid (opens in a new tab)
  2. Go to Settings -> Sender Authentication -> Domain Authentication.
  3. Follow instructions and verify the domain you want to use to send email from.
Share
  1. Then navigate to Settings -> API Keys -> Create API Key.
  2. Type api key name and in the modal window choose Full Access. Click Create & View.
  3. Copy the API key appeared on the screen to add it to environmental variables later.

In order to configure sendgrid, you need to set the following environment variables in Strapi (.env):

SENDGRID_API_KEY=''
DEFAULT_FROM_EMAIL=''

DEFAULT_FROM_EMAIL should be within the domain, you have configured and verified in sendgrid.

SMTP

Configuration in Strapi

After you have set the environment variables, you need to configure the email provider in Strapi.

  1. Go to the Strapi admin panel.
  2. Open Content Manager.
  3. Under Collection types, click on EmailTemplate.
  4. Update each email template with the correct subject, fromName, and fromEmail. Make sure that fromEmail is configured in Sendgrid.
  5. Update content of the email template based on the packages/email-templates folder in the repository.
  6. DO NOT CHANGE name
Share