---
title: WP Mail SMTP Definition and Functionality | SendHQ
description: Technical overview of WP Mail SMTP, explaining how it replaces the default WordPress PHP mail function with professional SMTP relay services.
canonical: https://sendhq.cc/terms/wp-mail-smtp
last-updated: 2026-08-26
---
# WP Mail SMTP Definition and Functionality

WP Mail SMTP is a WordPress plugin that replaces the default PHP mail() function with a dedicated SMTP relay. By routing emails through a professional mail server instead of the local web server, it ensures that transactional emails are authenticated and delivered reliably.

## Core Definition

WP Mail SMTP is a configuration layer for WordPress that intercepts the wp_mail() function. Instead of relying on the server's local mail agent, which is often unconfigured or blocked by hosting providers, it connects to an external SMTP server or API to transmit messages. This shift moves the responsibility of mail delivery from the web host to a specialized email delivery service.

## Mechanical Operation

The plugin works by establishing a connection to a remote server using the Simple Mail Transfer Protocol (SMTP) or a REST API. It handles the authentication process using credentials such as API keys or username and password combinations. Once authenticated, the plugin transmits the message payload to the relay, which then handles the final delivery to the recipient's mail server according to RFC 5321 standards.

## Importance for Senders

Using a dedicated relay is critical because local web servers lack the reputation and authentication records required by modern mail filters. By using a relay, senders can implement SPF, DKIM, and DMARC records. This reduces the likelihood of emails being flagged as spam or rejected by receiving servers that enforce strict authentication checks.

## Operational Notes

A common mistake is using a personal Gmail account for high volume, which can lead to account suspension. Developers should instead use transactional services. To ensure the relay is configured correctly, users can utilize SendHQ or its free tools (https://sendhq.cc/tools) to verify that their DNS records align with the chosen SMTP provider.

## Implementation Example

A typical setup involves installing the plugin and selecting a mailer like Amazon SES. The user enters the SES SMTP endpoint, port 587 for STARTTLS, and the associated IAM credentials. Once saved, all WordPress notifications, such as password resets and order confirmations, are routed through AWS infrastructure rather than the local server.

## Questions teams ask

**Why is the default PHP mail function unreliable?**

PHP mail() lacks authentication and often sends from an unverified server IP, causing receiving servers to mark the mail as spam or reject it entirely.

**Does WP Mail SMTP improve email deliverability?**

It enables the use of authenticated relays and API services, which allows the sender to sign emails with DKIM and SPF to improve trust.

**Can I use any SMTP server with this plugin?**

Yes, it supports any server that follows standard SMTP protocols or provides a supported API for message transmission.

## Primary sources

- [RFC 5321: Simple Mail Transfer Protocol](https://www.rfc-editor.org/rfc/rfc5321) — RFC Editor
- [RFC 4954: SMTP Service Extension for Authentication](https://www.rfc-editor.org/rfc/rfc4954) — RFC Editor
- [Amazon SES Developer Guide](https://docs.aws.amazon.com/ses/latest/dg/) — Amazon Web Services

## Continue learning

[smtp relay service](https://sendhq.cc/guides/smtp-relay-service.md) [email deliverability](https://sendhq.cc/guides/email-deliverability.md) [mail protocol smtp](https://sendhq.cc/guides/mail-protocol-smtp.md) [amazon ses](https://sendhq.cc/guides/amazon-ses.md) [email dkim spf dmarc](https://sendhq.cc/guides/email-dkim-spf-dmarc.md)
