
SMTP
v1.2.0WordPress.org · 2011年6月28日 上架
Send WordPress emails through an SMTP server, with an extensible provider API and a simple email log.
- 正在使用
- 800+
- 评分
- 5.0 / 5
- 累计下载
- 8.4 万
- 最近更新
- 2026年11月17日
2 条评价需要 WordPress 6.3+已测试到 6.9.12PHP 7.4+
贡献者
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_PASSWORDandSMTP_FROM_EMAILinwp-config.phpto 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.