SMTP
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_US
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 .
- 01Upload the plugin to the /wp-content/plugins/ directory, or install it from the Plugins screen.
- 02Activate the plugin.
- 03Go to Tools > SMTP and enter your SMTP server details.
- 04