danvyankooten/wp-smtp-mailer

一个配置wp_mail使用SMTP的WordPress插件。

维护者

详细信息

git.sr.ht/~dvko/wp-smtp-mailer

安装量: 2,223

依赖项: 0

建议者: 0

安全: 0

类型:wordpress-plugin

1.1.2 2024-02-11 18:44 UTC

This package is not auto-updated.

Last update: 2024-09-10 12:05:26 UTC


README

此插件将配置默认的WordPress邮件功能(wp_mail)使用PHPMailer和SMTP。

Build Status Stable Version License Code Climate Test Coverage

用法

在您的/wp-config.php文件中定义以下所有常量。如果这些常量中任何一个未定义,则插件不会配置PHPMailer使用SMTP。

define( 'SMTP_HOST', 'smtp.gmail.com' );
define( 'SMTP_PORT', 465 );
define( 'SMTP_USER', 'your email' );
define( 'SMTP_PASSWORD', 'your password' );

就这么多。

PS. 我建议在您的开发环境中使用类似MailCatcher的SMTP服务器。