How to Connect SendGrid to WordPress with LetterPress
The SendGrid card uses the v3 Mail Send API. Before connecting it, authenticate a sender and create an API key with Mail Send permission.
Before you begin
- A SendGrid account.
- A verified sender address or an authenticated domain.
- Permission to create API keys.
Authenticate a domain if you can. A single verified sender is fine for a test, but a domain gives you DKIM and a better chance of reaching the inbox.
Step 1: Authenticate your sender
- Sign in to SendGrid.
- Open Settings > Sender Authentication.
- Choose Domain Authentication for a live site, or Single Sender Verification for a quick test.
- Add the DNS records SendGrid gives you.
- Wait until SendGrid shows the sender or domain as verified.
The From address in LetterPress must use the authenticated domain or the verified single sender.
Step 2: Create an API key
- Open Settings > API Keys.
- Click Create API Key.
- Choose Restricted Access.
- Give it Mail Send access. Full access for Mail Send is enough.
- Create the key and copy it. SendGrid shows it once.
LetterPress does not need billing or marketing scopes.
Step 3: Enter the key in LetterPress
- Open Settings > Email providers.
- Select SendGrid.
- Paste the API key.
- Save changes. Set this provider as default if the button is shown. Then click Test connection.
The test reads the key's scopes and confirms it can send mail.
Step 4: Set the sender and test
Open Settings > Sender identity and set From email to an address on the authenticated domain.
Click Send test email on the SendGrid card. Then send a test email from Settings > Sender identity.
Common problems
| Problem | What to check |
|---|---|
401 Unauthorized | The key is wrong, revoked, or copied with extra spaces. |
Test says mail.send is missing | Edit the key and enable Mail Send access. |
403 Forbidden on send | The From address is not verified, or the domain authentication is incomplete. |
429 Too Many Requests | You reached the plan limit or SendGrid is throttling. Lower your sending limits. |
| Mail goes to spam | Finish domain authentication and set up SPF, DKIM, and DMARC. |
Next steps
- Add email authentication records.
- Connect SendGrid events in event tracking.
- Moving from another plugin? Start with SMTP migration.