danvyankooten / wp-smtp-mailer
一个配置wp_mail使用SMTP的WordPress插件。
1.1.2
2024-02-11 18:44 UTC
Requires
- php: >=5.3.0
- composer/installers: ~1.0|~2.0
Requires (Dev)
- phpunit/phpunit: 4.5.*
This package is not auto-updated.
Last update: 2024-09-10 12:05:26 UTC
README
此插件将配置默认的WordPress邮件功能(wp_mail
)使用PHPMailer和SMTP。
用法
在您的/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服务器。