Skip to main content

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​

  1. Sign in to SendGrid.
  2. Open Settings > Sender Authentication.
  3. Choose Domain Authentication for a live site, or Single Sender Verification for a quick test.
  4. Add the DNS records SendGrid gives you.
  5. 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​

  1. Open Settings > API Keys.
  2. Click Create API Key.
  3. Choose Restricted Access.
  4. Give it Mail Send access. Full access for Mail Send is enough.
  5. 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​

  1. Open Settings > Email providers.
  2. Select SendGrid.
  3. Paste the API key.
  4. 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​

ProblemWhat to check
401 UnauthorizedThe key is wrong, revoked, or copied with extra spaces.
Test says mail.send is missingEdit the key and enable Mail Send access.
403 Forbidden on sendThe From address is not verified, or the domain authentication is incomplete.
429 Too Many RequestsYou reached the plan limit or SendGrid is throttling. Lower your sending limits.
Mail goes to spamFinish domain authentication and set up SPF, DKIM, and DMARC.

Next steps​