How to Configure Mailjet

Mailjet is one of the few API providers in SMTPPai that needs two secrets: an API key and a Secret key.

When to choose Mailjet

Use Mailjet when your sending domains and contacts already live in Mailjet and you want WordPress transactional mail on the same account.

Prerequisites

  1. Mailjet account
  2. Verified sender domain
  3. API key pair from Account → API keys

Open SMTPPai

  1. SMTPPai → Dashboard → Add connection
  2. Click Mailjet

Field-by-field setup

Connection name

Example: “Mailjet transactional”.

From name / From email

Must be on a verified domain: Mailjet → Sender domains & addresses.

API key and Secret key

  1. Open Mailjet → Account → API keys.
  2. Copy the API key into SMTPPai’s API key field.
  3. Copy the Secret key into SMTPPai’s Secret key field.

Credential storage

  • Database (both secrets encrypted), or
  • wp-config:
    define( 'MAILPAI_SMTP_API_KEY', 'your-api-key' );
    define( 'MAILPAI_SMTP_API_SECRET', 'your-secret-key' );

Save and test

Save → Test → Email Log.

Common failures

  • API key and Secret key swapped
  • From address not on a verified sender domain

Related: How connections work

Did this article help you?

Your vote shapes what we improve next.

Leave a comment