Skip to content

SendGrid integration

You can send emails from your applications via SendGrid by configuring mail transfer agent OpenSMTPD:

  1. Make sure your application stack has enabled OpenSMTPD service
  2. Log in to your SendGrid account and visit guide https://app.sendgrid.com/guide
  3. Start with Integrate using our Web API or SMTP relay option
  4. Choose SMTP Relay
  5. Enter API Key to generate password
  6. Add the following environment variables to OpenSMTPD service (replace [Tokens] with your values):
    RELAY_HOST=[Server]
    RELAY_USER=[Username]
    RELAY_PASSWORD=[Password]
    
  7. Proceed to the next step in SendGrid dashboard to verify integration
  8. Send a test email from OpenSMTPD container