Storyden

SendGrid

Configure Storyden to send emails through SendGrid.

SendGrid is a simple provider for sending emails with a generous free tier.

Required Configuration

Set these environment variables:

  • EMAIL_PROVIDER=sendgrid
  • SENDGRID_FROM_NAME
  • SENDGRID_FROM_ADDRESS
  • SENDGRID_API_KEY
  • JWT_SECRET

Use the Configuration reference for complete field details.

Example

EMAIL_PROVIDER=sendgrid
SENDGRID_FROM_NAME="My Community"
SENDGRID_FROM_ADDRESS=no-reply@example.com
SENDGRID_API_KEY=SG.xxxxxxxxxxxxxxxxxxxx
JWT_SECRET=replace-with-a-long-random-secret

You can generate a JWT secret with openssl rand -hex 32.

Sender Setup

Make sure the sender address/domain is verified in SendGrid before going live, otherwise delivery can fail or end up in spam.

On this page