Configuring SendGrid
Spree Starter comes with SendGrid pre-configured out of the box and you will need to set the following environment variables:SENDGRID_API_KEY
- Your SendGrid API key. Can be found in the SendGrid dashboard.SENDGRID_DOMAIN
- The domain you want to use for sending emails that was verified in SendGrid, eg.mystore.com
.
config/environments/production.rb
file:
Remember to verify the email address in SendGrid, you intend to use for sending emails, otherwise emails will be rejected.Read more about SendGrid sender verification