SMTP

plugin banner

Allows you to configure and use a SMTP server (such as Gmail) for sending emails.

Author:WordPress.org (profile at wordpress.org)
WordPress version required:6.3
WordPress version tested:6.9.12
Plugin version:1.2.0
Added to WordPress repository:28-06-2011
Last updated:16-11-2026
Rating, %:100
Rated by:2
Plugin URI:https://github.com/WordPress/smtp
Total downloads:84 380
Active installs:900+
plugin download
Click to start download

SMTP is a minimal, community-maintained plugin that sends the emails of your site through the SMTP server of your choice.

  • Simple settings: host, port, encryption, authentication, From email and From name under Tools > SMTP.
  • Constants support: define SMTP_HOST, SMTP_PORT, SMTP_ENCRYPTION, SMTP_USER, SMTP_PASSWORD and SMTP_FROM_EMAIL in wp-config.php to override the saved values. Recommended for production, so credentials stay out of the database.
  • Email log: every email sent with wp_mail() is logged with its recipient, subject, status and error. The message body and attachments are never stored. Entries are deleted after 30 days.
  • Alerts: get a Slack message when an email fails to send, so a broken mailer does not go unnoticed. Developers can add more channels.
  • Test email: send a test message to yourself and see the connection log and a hint on what to check if something goes wrong. Credentials are redacted.
  • WP-CLI: configure the plugin, send a test email and check the status from the command line.
  • Extensible: developers can add more providers. See the technical documentation on GitHub.

The plugin does nothing until a host is configured, so activating it never breaks your site’s email.

Contributing

SMTP is developed in the open. Bug reports, ideas and pull requests are welcome at github.com/wordpress/smtp.


FAQ
ChangeLog