Skip to content

Send WordPress email through Mailgun

Mailgun is a developer-focused sending service with strong logging and routing on its side. Sending through your own Mailgun domain means your site’s email goes out under your domain’s reputation.

How BooleanSMTP sends through Mailgun

Through the Custom SMTP connection

In BooleanSMTP, add a mailer, choose Custom SMTP, and enter Mailgun’s SMTP server below with your Mailgun SMTP login. Logging, the fallback, retries and alerts work exactly as they do for every other connection.

Mailgun SMTP servers
SMTP hostPortEncryption
smtp.mailgun.org587TLS
smtp.mailgun.org2525TLS
smtp.mailgun.org465SSL
smtp.eu.mailgun.org587TLS
smtp.eu.mailgun.org2525TLS
smtp.eu.mailgun.org465SSL
Username
Your domain’s SMTP login, such as postmaster@mg.example.com (Sending → Domain settings → SMTP credentials)
Password
The SMTP password of that login, from the same page, not your API key

Use smtp.eu.mailgun.org when your domain is in Mailgun’s EU region.

Checked against Mailgun’s SMTP documentation.

Before you connect

Add and verify a sending domain in Mailgun, note whether it is in the US or EU region (each has its own SMTP server), and have the SMTP credentials Mailgun shows for that domain ready.

Setup guide: Custom SMTP connections

Pair it with a fallback

Mailgun accounts can be limited while a domain is being verified or reviewed. Keep a second provider as the fallback so your site keeps sending during that time.

When Mailgun refuses a message, BooleanSMTP tries your fallback connection at once, logs which one delivered it, and alerts you on Slack, Discord or Telegram only if every attempt fails. See the whole path

What Mailgun receives

Only what sending needs: each message (recipients, subject, body, headers, attachments) and the credentials you enter for the connection, sent to Mailgun when WordPress sends an email. BooleanSMTP stores those credentials encrypted in your own database. Read Mailgun’s terms and privacy policy.

Add a fallback to Mailgun in minutes

Read the docsAll providersComing soon to WordPress.org