跳到内容

Simple SMTP

v1.3.4.1

Casey · 2020年3月17日 上架

Adds a simple mail configuration panel into your WordPress installation. Supports temporary logging and config variables.

正在使用
2,000+
评分
5.0 / 5
累计下载
4 万
最近更新
2025年8月12日
12 条评价需要 WordPress 5.0+已测试到 6.8.13PHP 7.0+

贡献者

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.

Plums

按场景查找 WordPress 插件。安装量、评分和兼容版本来自官方目录。

导航

说明

WordPress 是 WordPress Foundation 的商标。本站与 WordPress Foundation、Automattic 没有隶属关系。这里不托管插件文件,下载和安装以 WordPress.org 上的页面为准。

© 2026 Plums