Configuration
The username is the literal string
apikey, exactly as written above — not your SendGrid username, and not the key itself. SendGrid’s own wording: “This setting is the exact string apikey and not the API key itself.” Your API key goes in the password field, used as-is: the Base64 encoding SendGrid mentions elsewhere applies to testing by hand with openssl, not to an application connecting over SMTP.Getting an API key
- In the SendGrid dashboard go to Settings → API Keys and choose Create API Key.
- Give it Mail Send permission — that is all Spree needs, and a restricted key limits the damage if it leaks.
- Copy the key immediately; it is shown only once.
Authenticating your domain
Go to Settings → Sender Authentication and complete Domain Authentication. SendGrid generates CNAME records to add at your DNS host, covering DKIM signing and the return path. Once verified, setSMTP_FROM_ADDRESS to an address on that domain.
Account plans
SendGrid retired its free plans in 2025. New accounts now start on a 60-day trial that allows up to 100 emails per day, and when the trial ends any integration using the account’s API keys stops sending until you move to a paid plan. Plan for a paid plan before launch rather than discovering the cutoff when order confirmations stop.Related
- Emails — the SMTP variables and how to verify delivery
- Sending out Emails — what Spree sends and when
- SendGrid SMTP documentation

