Skip to content

Send WordPress email through Gmail / Google Workspace

If your business email already lives on Google Workspace, sending your site’s email through that same account is the simplest setup there is: messages go out from an address your customers already recognise, through Google’s own servers. A personal Gmail account works the same way for a small site.

How BooleanSMTP sends through Gmail

SMTP

BooleanSMTP connects to the provider’s SMTP server with the details below and sends through PHPMailer, the library WordPress itself uses.

The connection asks for

  • App Password

Plus the From address and name every connection has.

HTTP API

BooleanSMTP sends over Gmail’s HTTPS API instead of SMTP, so no SMTP port has to be open on your server, and it signs in with OAuth instead of storing a password.

The connection asks for

  • Client ID
  • Client Secret

Plus the From address and name every connection has.

Before you connect

For the Gmail API, create an OAuth client in your Google Cloud project and have its client ID and secret ready; BooleanSMTP signs in with it and keeps the token refreshed. For SMTP, turn on 2-Step Verification for the account and create an app password.

Setup guide: Gmail

Pair it with a fallback

Google applies its own daily sending limits to every account. Pair it with a sending service such as Amazon SES or Postmark as the fallback, so a busy day or a revoked sign-in never stops your order emails.

When Gmail 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 Gmail receives

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

Add a fallback to Gmail in minutes

Read the docsAll providersComing soon to WordPress.org