How WordPress Sends Email
WordPress sends email through a function called wp_mail(). That function hands the message to the server. The server then decides how to deliver it.
On most hosts, the server uses PHP mail. PHP mail passes the message to the server's local mail system. It has no login, no delivery receipt, and no sender reputation. Sender reputation is the trust that mailbox providers place in your domain or sending IP. Large mailbox providers often treat that kind of mail as suspicious.
The three delivery paths
| Path | What happens | Typical result |
|---|---|---|
| PHP mail | WordPress passes the message to the web server | Works for a few emails, often goes to the spam folder or disappears |
| SMTP | WordPress logs in to a mail server and hands over the message | Reliable when the server and domain are set up correctly |
| Email API | WordPress sends an HTTPS request to a provider | Reliable, with clear errors and delivery events |
LetterPress can use all three. PHP mail is the default WordPress transport. SMTP and API providers replace it.
What LetterPress changes
LetterPress hooks into wp_mail() and sends the message through your provider route. Your theme and other plugins keep calling wp_mail() as usual. They do not need to know which provider is active.
You can save credentials for several providers. The default provider handles email when a provider list is empty. You can also set a separate provider order for transactional email and campaigns.
That single control is important. If two SMTP plugins are active, both may try to send the same message. The result is duplicate mail, failed mail, or mail sent through the wrong account.
SMTP and API are not the same
SMTP is an old, universal protocol. Almost every email service supports it. It uses a host, a port, encryption, and usually a username and password.
An API is a provider-specific web address that accepts email requests over HTTPS. You send a key instead of a password. The provider returns a structured error when something is wrong.
| SMTP | API | |
|---|---|---|
| Works with almost any provider | Yes | No, each provider has its own API |
| Needs host, port, and encryption | Yes | No |
| Error messages | Often short and technical | Usually specific, such as an unverified sender |
| Works through firewalls | Sometimes blocked on ports 25, 465, and 587 | Uses HTTPS on port 443 |
| Connection test | Tests the login | Tests the key and often the account |
If both options exist, start with the API card. If the API test fails for network reasons, try the provider's SMTP endpoint through the SMTP card.
Why email still fails after setup
A working connection does not guarantee inbox delivery. The provider also checks:
- Whether your sending domain is verified.
- Whether SPF, DKIM, and DMARC records are correct.
- Whether the From address is allowed by the provider.
- Whether your account is still in a sandbox or trial mode.
- Whether the recipient's mailbox provider trusts your domain.
That is why every guide in this section ends with a real test email. A connection test only proves the login. A delivered email proves the full path.
WordPress email and campaign email
You can use the same provider for both, or a different provider for each. The delivery path is different.
- WordPress email goes out immediately when an event happens, such as a password reset.
- Campaign email goes into a queue and is sent in batches, subject to your sending limits.
Set the order for each type of email in Email Provider Routing.
People often call account email "transactional email". It is triggered by a user action, such as a password reset or an order. A campaign is a newsletter sent to a group of subscribers.
Campaign events appear in Reports > Events when provider webhooks are connected. WordPress notification emails do not appear there. For those, test the mailbox and check your provider's own logs.
Can one provider send both?
Yes, if the provider supports both types.
LetterPress can use:
- The same provider for account email and campaigns.
- A different provider for each type of email.
- A different fallback order for each type of email.
Most large providers support both. Amazon SES, SendGrid, Mailgun, Brevo, and SparkPost can send transactional email and campaigns. Some services, such as ZeptoMail, only allow transactional email. Use them for account email only.
If you use one provider for both, keep the streams apart:
- Postmark has separate transactional and broadcast streams. See Postmark.
- Amazon SES uses configuration sets and separate identities.
- Use a subdomain such as
mail.example.comfor campaigns and keep the main domain for account email.
This protects account email reputation when a campaign gets many bounces or complaints.
To use different providers or fallback order, open Settings > Provider routing. See Email Provider Routing.
Next steps
- Learn the fields on the provider form in SMTP settings explained.
- Pick a provider in Supported email providers.
- Confirm your domain with SPF, DKIM, and DMARC.