# SMTP for WordPress

> Send all WordPress email through an SMTP server (Gmail, Office 365, SendGrid, Mailgun, SES and more) instead of PHP mail(). Part of Toggleworks, one plugin…

TW-EML-05 Email


Send all WordPress email through an SMTP server (Gmail, Office 365, SendGrid, Mailgun, SES and more) instead of PHP mail().

[Get it from $26 a year](https://togglework.app/pricing/#plans) [Try it in the demo](https://togglework.app/demo/)

SMTP

**Part number**
: TW-EML-05
**Section**
: [Email](https://togglework.app/features/email/)
**Settings**
: 12 (4 on/off)
**Starts**
: Switched off
**In plans**
: Every plan

## Why it matters

WordPress sends email through the web server’s mail() function by default. Many hosts don’t deliver it at all, and what does go out isn’t authorised by your domain, so Gmail and Outlook put it in spam. That is why password resets, form notifications and order emails go missing.

Sending through a real mail server (SMTP) fixes it.

### What it does

- Sends all WordPress email through an SMTP server.
- Presets for Gmail and Google Workspace, Outlook and Microsoft 365, SendGrid, Mailgun, Amazon SES, Brevo, Postmark and Zoho.
- TLS or SSL, with automatic TLS upgrade when the server offers it.
- Sets the From address and name, optionally for every email, and the bounce address.
- The password can live in wp-config.php instead of the database.

![SMTP settings screen in the Toggleworks WordPress plugin, showing Provider preset, SMTP host, Port, Encryption](https://togglework.app/wp-content/themes/toggleworks-site/assets/img/parts/email-smtp.webp?v=1795524185)

The SMTP screen in wp-admin, where you switch it on and change its settings.

## Set it up

1. Choose your provider’s preset, then enter the username and password or API key.
2. Set the From address to one on your own domain, verified with your provider.
3. Send a test email and check it arrives in the inbox, not spam.

## What you can set

Switch SMTP on in Toggleworks → Email, then adjust any of these. Each one starts with a default, so you can switch the part on first and fine-tune later.

- Provider preset
- SMTP host
- Port
- Encryption
- With “None”, still upgrade to TLS if the server offers it
- Use SMTP authentication
- Username
- Password
- From email
- From name
- Force this sender even if another plugin sets its own
- Set Return-Path (bounce address) to the From email

## Good to know

- Also set up SPF, DKIM and DMARC for your domain. See [fixing WordPress email](https://togglework.app/guides/wordpress-not-sending-email/).
- Gmail needs an app password, not your normal password.
- Turn on [Email Log](https://togglework.app/features/email/email-log/) so you can check and resend any email.

## One less plugin to install

SMTP does a job people often install a separate plugin for:

- Sending WordPress email through a real mail serverOften done with WP Mail SMTP

## Comes with 187 more parts

SMTP is one part of Toggleworks, a single plugin for security, speed, SEO, backups, email and store tools. Switch on what your site needs; the rest stays off and loads nothing.

[All 5 Email parts](https://togglework.app/features/email/)

### People also look for it as

- smtp
- mail
- phpmailer
- gmail
- outlook
- office365
- sendgrid
- mailgun
- ses
- brevo
- sendinblue
- postmark

## Often switched on with it

- [Email Blocklist & Bounce Suppression](https://togglework.app/features/email/email-blocklist/) — TW-EML-01 · Never send email to addresses or domains you list, and automatically stop emailing addresses that bounce permanently. Protects… · 2 settings
- [Email Log](https://togglework.app/features/email/email-log/) — TW-EML-02 · Keep a searchable record of every email WordPress sends, with delivery status, errors and one-click resend. · 3 settings
- [Newsletter Signups](https://togglework.app/features/marketing/newsletter/) — TW-MKT-06 · Collect email subscribers with a signup form, an opt-in on any Toggleworks form or at checkout — with double opt-in — and send… · 6 settings
- [Email Tweaks](https://togglework.app/features/email/email-tweaks/) — TW-EML-03 · Change the sender name and address, switch off noisy core notification emails, and give plain-text emails a branded HTML layout. · 9 settings
- [Mail Control (Test Mode)](https://togglework.app/features/email/mail-control/) — TW-EML-04 · Stop all outgoing email, or send every email to one address instead. Ideal for staging and development sites. · 3 settings

## Questions

**Is it a replacement for WP Mail SMTP?**

For sending through SMTP, logging and test mode, yes: see the [WP Mail SMTP comparison](https://togglework.app/alternatives/wp-mail-smtp/). If your provider only offers an API and no SMTP access, check that first.

**Is SMTP included in every Toggleworks plan?**

Yes. Every plan includes all 188 parts, SMTP among them. Plans differ only in how many sites you can use them on, and staging or local copies of a site don’t count.

**Does SMTP slow my site down when it’s switched off?**

No. Every part starts switched off, and a part that is off loads none of its code. Switch on SMTP only if your site needs it.

## Switch off the plugin pile.

All 188 parts, one license, updates and support. 14-day refund.

[Choose a plan](https://togglework.app/pricing/#plans) [Try the live demo](https://togglework.app/demo/)

---

Source: https://togglework.app/features/email/smtp/
