我们遇到 WP Mail SMTP 无法发送邮件的问题。
环境设置:
通过插件的测试邮件功能发送邮件时进行调试:
Versions:
WordPress: 5.4.1
WordPress MS: No
PHP: 7.3.16
WP Mail SMTP: 2.1.1
Params:
Mailer: gmail
Constants: No
Client ID/Secret: Yes
Auth Code: Yes
Access Token: Yes
Server:
OpenSSL: OpenSSL 1.0.2k 26 Jan 2017
PHP.allow_url_fopen: Yes
PHP.stream_socket_client(): Yes
PHP.fsockopen(): Yes
PHP.curl_version(): 7.61.1
PHPMailer Debug:
Invalid address: (setFrom) wordpress@
尝试使用
function.php
,以最简单的方式添加您自己的代码。使用 wp_mail()
功能。
Please update plugin of WP Mail SMTP and version of 2.5.0. solve some bugs in new version
and please install smtp plugin in wordpress and smtp credentail integration in plugin and sent a test mail using smtp test mail and check sent mail or not. if mail in not then check smtp logs