plugin-icon

Simple SMTP

作者:Casey·
Adds a simple mail configuration panel into your WordPress installation. Supports temporary logging and config variables.
评级
5/5
版本
1.3.4.1
活跃安装
2K
最后更新
Aug 11, 2025

Adds a simple, no-fuss SMTP settings to your WordPress installation that lets you define custom settings, which is especially useful for hosts with no control over the php mail functionality.

If logging is enabled, a new segment in the settings panel will show up with a 30-day overview of recent emails, and will automatically prune older logs. Please see the FAQ if you want a more permanent solution.

For more information, please see the project wiki on GitHub.

Environment and constant overriding (optional)

This plugin will prefer environmental and constant-stored values over the plugin-saved equivalent settings, making it easier to use this plugin via deployment.

These can be either stored in your systems env setup, or in wp-config.php as define( 'SEE_BELOW', 'your_value_here' );.

Accepted Parameters

  • SMTP_HOST (string) Mail server hostname.
  • SMTP_PORT (integer) Port address (usually 25, 465 or 587).
  • SMTP_AUTH (integer, 1 or 0) Pass below credentials to your mail server.
  • SMTP_USER (string) The mail username for this account.
  • SMTP_PASS (string) The password for the mailer account.
  • SMTP_FROM (string) Enforce all emails come from this email address.
  • SMTP_FROMNAME (string) Enforce all emails to have a certain email name.
  • SMTP_SEC (string) Use a particular email security method (accepts ‘def’ (default), ‘ssl’, ‘tls’ and ‘off’).
  • SMTP_NOVERIFYSSL (boolean) Disable validation of the SMTP server certificate (not recommended).
  • SMTP_LOG (boolean) Controls the logging capability and visibility.
  • SMTP_DISABLE (boolean) Disables the mailer. They will still be logged if enabled, but won’t send out.

It is recommended to store at least SMTP_PASS in your wp-config.php file (with the correct file permissions set). If the openssl extension is available, the plugin will attempt to encrypt the password in the database.

免费使用Business套餐
通过安装,您同意 WordPress.com 服务条款第三方插件条款
目前已测试版本
WordPress 6.8.3
这个插件是可用的下载,适用于您的站点。