跳到内容

Simple SMTP Mailer

v1.1.0

Josh Mckibbin · 2022年8月18日 上架

Simplifies local development by configuring WordPress to use SMTP instead of the PHP mail() function

正在使用
20+
评分
暂无
累计下载
2,416
最近更新
2025年4月29日
需要 WordPress 6.0+已测试到 6.8.13PHP 8.0+

贡献者

截图

Simple SMTP Mailer Settings
Simple SMTP Mailer Settings

The Simple SMTP Mailer plugin allows you to easily configure WordPress to use SMTP instead of the PHP mail function.

This should only really be used in a development environment.

Simple SMTP Mailer Settings

  • Host: The mail server (Defaults to smtp.gmail.com)
  • Username: The username used for connecting to the SMTP server
  • Password: The password used for connecting to the SMTP server
  • Port: The port to use when sending an email (587, 465 or 25. Defaults to 587)
  • Security: The type of encryption security to use when sending an email (TLS or SSL. Defaults to TLS)
  • Debug: Enable debugging

All settings can be overridden by assigning array values to the SSMTP_MAILER constant in wp-config.php. This is useful for automating local deployment.

define(
    'SSMTP_MAILER',
    array(
        'host' => emailhost.com,
        'username' => username,
        'password' => password,
        'port' => 25,
        'security' => 'SSL'
    )
);

Plums

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

导航

说明

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

© 2026 Plums