我正在尝试配置名为SMTP Mailer的Wordpress插件。我已尝试使用我的Gmail凭据和Yahoo凭据(当然还有相关的SMTP主机名)。对于Gmail,我昨晚开启了“访问不太安全的应用”,等待更改需要时间才能生效。仍然没有运气。
我配置错了吗?谷歌没有合作吗?我需要使用其他插件吗?
如果我需要一个不同的插件,唯一真正重要的是它是免费的并且不依赖任何其他付费的东西(即邮差是“免费”但依赖于Mandrill,这不是)< / p>
我的SMTP主机是smtp.gmail.com(或Smtp.mail.yahoo.com)
使用SMTP身份验证
使用带端口587的TLS
我在“来自电子邮件地址”中尝试了匹配和不同的电子邮件地址
当我尝试通过插件发送测试电子邮件时,我明白了。 (Gmail凭据)
Connection: opening to smtp.gmail.com:587, timeout=300, options=array ()
Connection: opened
SMTP -> get_lines(): $data is ""
SMTP -> get_lines(): $str is "220 smtp.gmail.com ESMTP q77sm1720219itb.22 - gsmtp"
SERVER -> CLIENT: 220 smtp.gmail.com ESMTP q77sm1720219itb.22 - gsmtp
CLIENT -> SERVER: EHLO neptunechiropractic.com
SMTP -> get_lines(): $data is ""
SMTP -> get_lines(): $str is "250-smtp.gmail.com at your service, [69.65.3.206]"
SMTP -> get_lines(): $data is "250-smtp.gmail.com at your service, [69.65.3.206]"
SMTP -> get_lines(): $str is "250-SIZE 35882577"
SMTP -> get_lines(): $data is "250-smtp.gmail.com at your service, [69.65.3.206]250-SIZE 35882577"
SMTP -> get_lines(): $str is "250-8BITMIME"
SMTP -> get_lines(): $data is "250-smtp.gmail.com at your service, [69.65.3.206]250-SIZE 35882577250-8BITMIME"
SMTP -> get_lines(): $str is "250-STARTTLS"
SMTP -> get_lines(): $data is "250-smtp.gmail.com at your service, [69.65.3.206]250-SIZE 35882577250-8BITMIME250-STARTTLS"
SMTP -> get_lines(): $str is "250-ENHANCEDSTATUSCODES"
SMTP -> get_lines(): $data is "250-smtp.gmail.com at your service, [69.65.3.206]250-SIZE 35882577250-8BITMIME250-STARTTLS250-ENHANCEDSTATUSCODES"
SMTP -> get_lines(): $str is "250-PIPELINING"
SMTP -> get_lines(): $data is "250-smtp.gmail.com at your service, [69.65.3.206]250-SIZE 35882577250-8BITMIME250-STARTTLS250-ENHANCEDSTATUSCODES250-PIPELINING"
SMTP -> get_lines(): $str is "250-CHUNKING"
SMTP -> get_lines(): $data is "250-smtp.gmail.com at your service, [69.65.3.206]250-SIZE 35882577250-8BITMIME250-STARTTLS250-ENHANCEDSTATUSCODES250-PIPELINING250-CHUNKING"
SMTP -> get_lines(): $str is "250 SMTPUTF8"
SERVER -> CLIENT: 250-smtp.gmail.com at your service, [69.65.3.206]250-SIZE 35882577250-8BITMIME250-STARTTLS250-ENHANCEDSTATUSCODES250-PIPELINING250-CHUNKING250 SMTPUTF8
CLIENT -> SERVER: STARTTLS
SMTP -> get_lines(): $data is ""
SMTP -> get_lines(): $str is "220 2.0.0 Ready to start TLS"
SERVER -> CLIENT: 220 2.0.0 Ready to start TLS
CLIENT -> SERVER: EHLO neptunechiropractic.com
SMTP -> get_lines(): $data is ""
SMTP -> get_lines(): $str is "250-smtp.gmail.com at your service, [69.65.3.206]"
SMTP -> get_lines(): $data is "250-smtp.gmail.com at your service, [69.65.3.206]"
SMTP -> get_lines(): $str is "250-SIZE 35882577"
SMTP -> get_lines(): $data is "250-smtp.gmail.com at your service, [69.65.3.206]250-SIZE 35882577"
SMTP -> get_lines(): $str is "250-8BITMIME"
SMTP -> get_lines(): $data is "250-smtp.gmail.com at your service, [69.65.3.206]250-SIZE 35882577250-8BITMIME"
SMTP -> get_lines(): $str is "250-AUTH LOGIN PLAIN XOAUTH2 PLAIN-CLIENTTOKEN OAUTHBEARER XOAUTH"
SMTP -> get_lines(): $data is "250-smtp.gmail.com at your service, [69.65.3.206]250-SIZE 35882577250-8BITMIME250-AUTH LOGIN PLAIN XOAUTH2 PLAIN-CLIENTTOKEN OAUTHBEARER XOAUTH"
SMTP -> get_lines(): $str is "250-ENHANCEDSTATUSCODES"
SMTP -> get_lines(): $data is "250-smtp.gmail.com at your service, [69.65.3.206]250-SIZE 35882577250-8BITMIME250-AUTH LOGIN PLAIN XOAUTH2 PLAIN-CLIENTTOKEN OAUTHBEARER XOAUTH250-ENHANCEDSTATUSCODES"
SMTP -> get_lines(): $str is "250-PIPELINING"
SMTP -> get_lines(): $data is "250-smtp.gmail.com at your service, [69.65.3.206]250-SIZE 35882577250-8BITMIME250-AUTH LOGIN PLAIN XOAUTH2 PLAIN-CLIENTTOKEN OAUTHBEARER XOAUTH250-ENHANCEDSTATUSCODES250-PIPELINING"
SMTP -> get_lines(): $str is "250-CHUNKING"
SMTP -> get_lines(): $data is "250-smtp.gmail.com at your service, [69.65.3.206]250-SIZE 35882577250-8BITMIME250-AUTH LOGIN PLAIN XOAUTH2 PLAIN-CLIENTTOKEN OAUTHBEARER XOAUTH250-ENHANCEDSTATUSCODES250-PIPELINING250-CHUNKING"
SMTP -> get_lines(): $str is "250 SMTPUTF8"
SERVER -> CLIENT: 250-smtp.gmail.com at your service, [69.65.3.206]250-SIZE 35882577250-8BITMIME250-AUTH LOGIN PLAIN XOAUTH2 PLAIN-CLIENTTOKEN OAUTHBEARER XOAUTH250-ENHANCEDSTATUSCODES250-PIPELINING250-CHUNKING250 SMTPUTF8
Auth method requested: UNKNOWN
Auth methods available on the server: LOGIN,PLAIN,XOAUTH2,PLAIN-CLIENTTOKEN,OAUTHBEARER,XOAUTH
Auth method selected: LOGIN
CLIENT -> SERVER: AUTH LOGIN
SMTP -> get_lines(): $data is ""
SMTP -> get_lines(): $str is "334 VXNlcm5hbWU6"
SERVER -> CLIENT: 334 VXNlcm5hbWU6
CLIENT -> SERVER: ZG9udXRndXlAZ21haWwuY29t
SMTP -> get_lines(): $data is ""
SMTP -> get_lines(): $str is "334 UGFzc3dvcmQ6"
SERVER -> CLIENT: 334 UGFzc3dvcmQ6
CLIENT -> SERVER: V2lsbGlzOTc=
SMTP -> get_lines(): $data is ""
SMTP -> get_lines(): $str is "534-5.7.14 <https://accounts.google.com/signin/continue?sarp=1&scc=1&plt=AKgnsbsl"
SMTP -> get_lines(): $data is "534-5.7.14 <https://accounts.google.com/signin/continue?sarp=1&scc=1&plt=AKgnsbsl"
SMTP -> get_lines(): $str is "534-5.7.14 LzEE2lLLfImAv_yM_TVulSQukCMK2TP2e2zHMoLfHinmHQd_xySluckyAX79IsvIkFa3Lq"
SMTP -> get_lines(): $data is "534-5.7.14 <https://accounts.google.com/signin/continue?sarp=1&scc=1&plt=AKgnsbsl534-5.7.14 LzEE2lLLfImAv_yM_TVulSQukCMK2TP2e2zHMoLfHinmHQd_xySluckyAX79IsvIkFa3Lq"
SMTP -> get_lines(): $str is "534-5.7.14 s6uWFgvPxxU-PiR37bZZltNOtAHRdVATLM-qA3o11Y0BE-C8n1zsYATIen43jCTQhMmHce"
SMTP -> get_lines(): $data is "534-5.7.14 <https://accounts.google.com/signin/continue?sarp=1&scc=1&plt=AKgnsbsl534-5.7.14 LzEE2lLLfImAv_yM_TVulSQukCMK2TP2e2zHMoLfHinmHQd_xySluckyAX79IsvIkFa3Lq534-5.7.14 s6uWFgvPxxU-PiR37bZZltNOtAHRdVATLM-qA3o11Y0BE-C8n1zsYATIen43jCTQhMmHce"
SMTP -> get_lines(): $str is "534-5.7.14 C3Jd_XLqoxkjKGaIzK8RN0nz30-EM-JItSaPRsn6dS8PQoW7-AGIHQlE8Yw4EnMcHxus_6"
SMTP -> get_lines(): $data is "534-5.7.14 <https://accounts.google.com/signin/continue?sarp=1&scc=1&plt=AKgnsbsl534-5.7.14 LzEE2lLLfImAv_yM_TVulSQukCMK2TP2e2zHMoLfHinmHQd_xySluckyAX79IsvIkFa3Lq534-5.7.14 s6uWFgvPxxU-PiR37bZZltNOtAHRdVATLM-qA3o11Y0BE-C8n1zsYATIen43jCTQhMmHce534-5.7.14 C3Jd_XLqoxkjKGaIzK8RN0nz30-EM-JItSaPRsn6dS8PQoW7-AGIHQlE8Yw4EnMcHxus_6"
SMTP -> get_lines(): $str is "534-5.7.14 lVtcod88LXd49PvBGTZj-32bgg57U> Please log in via your web browser and"
SMTP -> get_lines(): $data is "534-5.7.14 <https://accounts.google.com/signin/continue?sarp=1&scc=1&plt=AKgnsbsl534-5.7.14 LzEE2lLLfImAv_yM_TVulSQukCMK2TP2e2zHMoLfHinmHQd_xySluckyAX79IsvIkFa3Lq534-5.7.14 s6uWFgvPxxU-PiR37bZZltNOtAHRdVATLM-qA3o11Y0BE-C8n1zsYATIen43jCTQhMmHce534-5.7.14 C3Jd_XLqoxkjKGaIzK8RN0nz30-EM-JItSaPRsn6dS8PQoW7-AGIHQlE8Yw4EnMcHxus_6534-5.7.14 lVtcod88LXd49PvBGTZj-32bgg57U> Please log in via your web browser and"
SMTP -> get_lines(): $str is "534-5.7.14 then try again."
SMTP -> get_lines(): $data is "534-5.7.14 <https://accounts.google.com/signin/continue?sarp=1&scc=1&plt=AKgnsbsl534-5.7.14 LzEE2lLLfImAv_yM_TVulSQukCMK2TP2e2zHMoLfHinmHQd_xySluckyAX79IsvIkFa3Lq534-5.7.14 s6uWFgvPxxU-PiR37bZZltNOtAHRdVATLM-qA3o11Y0BE-C8n1zsYATIen43jCTQhMmHce534-5.7.14 C3Jd_XLqoxkjKGaIzK8RN0nz30-EM-JItSaPRsn6dS8PQoW7-AGIHQlE8Yw4EnMcHxus_6534-5.7.14 lVtcod88LXd49PvBGTZj-32bgg57U> Please log in via your web browser and534-5.7.14 then try again."
SMTP -> get_lines(): $str is "534-5.7.14 Learn more at"
SMTP -> get_lines(): $data is "534-5.7.14 <https://accounts.google.com/signin/continue?sarp=1&scc=1&plt=AKgnsbsl534-5.7.14 LzEE2lLLfImAv_yM_TVulSQukCMK2TP2e2zHMoLfHinmHQd_xySluckyAX79IsvIkFa3Lq534-5.7.14 s6uWFgvPxxU-PiR37bZZltNOtAHRdVATLM-qA3o11Y0BE-C8n1zsYATIen43jCTQhMmHce534-5.7.14 C3Jd_XLqoxkjKGaIzK8RN0nz30-EM-JItSaPRsn6dS8PQoW7-AGIHQlE8Yw4EnMcHxus_6534-5.7.14 lVtcod88LXd49PvBGTZj-32bgg57U> Please log in via your web browser and534-5.7.14 then try again.534-5.7.14 Learn more at"
SMTP -> get_lines(): $str is "534 5.7.14 https://support.google.com/mail/answer/78754 q77sm1720219itb.22 - gsmtp"
SERVER -> CLIENT: 534-5.7.14 <https://accounts.google.com/signin/continue?sarp=1&scc=1&plt=AKgnsbsl534-5.7.14 LzEE2lLLfImAv_yM_TVulSQukCMK2TP2e2zHMoLfHinmHQd_xySluckyAX79IsvIkFa3Lq534-5.7.14 s6uWFgvPxxU-PiR37bZZltNOtAHRdVATLM-qA3o11Y0BE-C8n1zsYATIen43jCTQhMmHce534-5.7.14 C3Jd_XLqoxkjKGaIzK8RN0nz30-EM-JItSaPRsn6dS8PQoW7-AGIHQlE8Yw4EnMcHxus_6534-5.7.14 lVtcod88LXd49PvBGTZj-32bgg57U> Please log in via your web browser and534-5.7.14 then try again.534-5.7.14 Learn more at534 5.7.14 https://support.google.com/mail/answer/78754 q77sm1720219itb.22 - gsmtp
SMTP ERROR: Password command failed: 534-5.7.14 <https://accounts.google.com/signin/continue?sarp=1&scc=1&plt=AKgnsbsl534-5.7.14 LzEE2lLLfImAv_yM_TVulSQukCMK2TP2e2zHMoLfHinmHQd_xySluckyAX79IsvIkFa3Lq534-5.7.14 s6uWFgvPxxU-PiR37bZZltNOtAHRdVATLM-qA3o11Y0BE-C8n1zsYATIen43jCTQhMmHce534-5.7.14 C3Jd_XLqoxkjKGaIzK8RN0nz30-EM-JItSaPRsn6dS8PQoW7-AGIHQlE8Yw4EnMcHxus_6534-5.7.14 lVtcod88LXd49PvBGTZj-32bgg57U> Please log in via your web browser and534-5.7.14 then try again.534-5.7.14 Learn more at534 5.7.14 https://support.google.com/mail/answer/78754 q77sm1720219itb.22 - gsmtp
SMTP Error: Could not authenticate.
CLIENT -> SERVER: QUIT
SMTP -> get_lines(): $data is ""
SMTP -> get_lines(): $str is "221 2.0.0 closing connection q77sm1720219itb.22 - gsmtp"
SERVER -> CLIENT: 221 2.0.0 closing connection q77sm1720219itb.22 - gsmtp
Connection: closed
SMTP Error: Could not authenticate.
修改
我现在收到了来自WP Mail SMTP插件的4个成功测试电子邮件,以及来自Easy WP SMTP插件的1个成功测试电子邮件。这仍然是一个问题,因为我似乎无法让它再次发生以挽救我的生命。在任一插件中只有这么多设置,其中大部分都是我所知(电子邮件地址和密码),或者是2或3个选项之间的选择,如TLS / SSL及其相关端口。
我通常会看到测试电子邮件无法发送,或者“尽管没有更改我的凭据但无法进行身份验证”。今天,我已经得到了大部分内部服务器错误,唯一的例外是使用Easy WP,使用TLS(和端口587),它仍然提供上面提到的失败消息。带有TLS的WP邮件或任何一个上的SSL,以及我今天尝试的其他所有内容都会导致内部服务器错误。
Easy WP错误消息 - SMTP连接()失败。 https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting
答案 0 :(得分:1)
<强> 更新 强> 经过一天的努力,我们发现了它! GoDaddy阻止了SMTP请求。我建议他使用SendGrid的免费版本并使用SendGrid插件,该插件使用SendGrid Web API,现在一切正常!
Yay:)
插件似乎对我不利。
考虑使用这个可以使用gmail的OAuth https://en-gb.wordpress.org/plugins/gmail-smtp/
或者如果您更喜欢SMTP,我建议使用WP Mail SMTP https://en-gb.wordpress.org/plugins/wp-mail-smtp/faq/
Gmail SMTP设置为:
smtp.gmail.com 带有SSL的端口465 要么 端口587与TLS
用户名和密码应该是您的正常Gmail信息。