通过 Contact From 7 插件发送邮件时出现问题
我的网站上安装了 Contact Form 7 插件,但在发送邮件时遇到问题。阅读网站上的一些文档后,我开始安装额外的 WP-MAIL-SMTP。但我在发送邮件时仍然遇到问题,我的输出如下:
结果是:
bool(true)
The full debugging output is shown below:
object(PHPMailer)#98 (53) {
["Priority"]=>
int(3)
["CharSet"]=>
string(5) "UTF-8"
["ContentType"]=>
string(10) "text/plain"
["Encoding"]=>
string(4) "8bit"
["ErrorInfo"]=>
string(35) "Language string failed to load: tls"
["From"]=>
string(16) "[email protected]"
["FromName"]=>
string(9) "xxxxxx.xx"
["Sender"]=>
string(0) ""
["Subject"]=>
string(47) "WP Mail SMTP: Test mail to [email protected]"
["Body"]=>
string(68) "This is a test email generated by the WP Mail SMTP WordPress plugin."
["AltBody"]=>
string(0) ""
["WordWrap"]=>
int(0)
["Mailer"]=>
string(4) "smtp"
["Sendmail"]=>
string(18) "/usr/sbin/sendmail"
["PluginDir"]=>
string(0) ""
["ConfirmReadingTo"]=>
string(0) ""
["Hostname"]=>
string(0) ""
["MessageID"]=>
string(0) ""
["Host"]=>
string(20) "xxxxx.xxxxxxx.xxx"
["Port"]=>
string(3) "465"
["Helo"]=>
string(0) ""
["SMTPSecure"]=>
string(3) "tls"
["SMTPAuth"]=>
bool(true)
["Username"]=>
string(22) "[email protected]"
["Password"]=>
string(13) "xxx"
["Timeout"]=>
int(10)
["SMTPDebug"]=>
int(2)
["SMTPKeepAlive"]=>
bool(false)
["SingleTo"]=>
bool(false)
["SingleToArray"]=>
array(0) {
}
["LE"]=>
string(1) "
"
["DKIM_selector"]=>
string(9) "phpmailer"
["DKIM_identity"]=>
string(0) ""
["DKIM_domain"]=>
string(0) ""
["DKIM_private"]=>
string(0) ""
["action_function"]=>
string(0) ""
["Version"]=>
string(3) "5.1"
["smtp":"PHPMailer":private]=>
object(SMTP)#97 (7) {
["SMTP_PORT"]=>
int(25)
["CRLF"]=>
string(2) "
"
["do_debug"]=>
int(2)
["do_verp"]=>
bool(false)
["smtp_conn":"SMTP":private]=>
int(0)
["error":"SMTP":private]=>
array(1) {
["error"]=>
string(38) "Called Reset() without being connected"
}
["helo_rply":"SMTP":private]=>
NULL
}
["to":"PHPMailer":private]=>
array(1) {
[0]=>
array(2) {
[0]=>
string(20) "[email protected]"
[1]=>
string(0) ""
}
}
["cc":"PHPMailer":private]=>
array(0) {
}
["bcc":"PHPMailer":private]=>
array(0) {
}
["ReplyTo":"PHPMailer":private]=>
array(0) {
}
["all_recipients":"PHPMailer":private]=>
array(1) {
["[email protected]"]=>
bool(true)
}
["attachment":"PHPMailer":private]=>
array(0) {
}
["CustomHeader":"PHPMailer":private]=>
array(0) {
}
["message_type":"PHPMailer":private]=>
string(5) "plain"
["boundary":"PHPMailer":private]=>
array(2) {
[1]=>
string(35) "b1_c67f7d9632b63e07cb05722c7e20a46c"
[2]=>
string(35) "b2_c67f7d9632b63e07cb05722c7e20a46c"
}
["language":protected]=>
array(17) {
["provide_address"]=>
string(54) "You must provide at least one recipient email address."
["mailer_not_supported"]=>
string(25) " mailer is not supported."
["execute"]=>
string(19) "Could not execute: "
["instantiate"]=>
string(36) "Could not instantiate mail function."
["authenticate"]=>
string(35) "SMTP Error: Could not authenticate."
["from_failed"]=>
string(35) "The following From address failed: "
["recipients_failed"]=>
string(45) "SMTP Error: The following recipients failed: "
["data_not_accepted"]=>
string(30) "SMTP Error: Data not accepted."
["connect_host"]=>
string(43) "SMTP Error: Could not connect to SMTP host."
["file_access"]=>
string(23) "Could not access file: "
["file_open"]=>
string(33) "File Error: Could not open file: "
["encoding"]=>
string(18) "Unknown encoding: "
["signing"]=>
string(15) "Signing Error: "
["smtp_error"]=>
string(19) "SMTP server error: "
["empty_message"]=>
string(18) "Message body empty"
["invalid_address"]=>
string(15) "Invalid address"
["variable_set"]=>
string(30) "Cannot set or reset variable: "
}
["error_count":"PHPMailer":private]=>
int(1)
["sign_cert_file":"PHPMailer":private]=>
string(0) ""
["sign_key_file":"PHPMailer":private]=>
string(0) ""
["sign_key_pass":"PHPMailer":private]=>
string(0) ""
["exceptions":"PHPMailer":private]=>
bool(false)
}
The SMTP debugging output is shown below:
SMTP -> FROM SERVER:
SMTP -> FROM SERVER:
SMTP -> ERROR: EHLO not accepted from server:
SMTP -> FROM SERVER:
SMTP -> ERROR: HELO not accepted from server:
SMTP -> NOTICE:
EOF caught while checking if connectedLanguage string failed to load: tls
有人有什么想法吗?
问候。
I have Contact Form 7 plugin installed on my site and I am having trouble sending mail. Readin g some of the documentation on the website, I proceeded to install an additional WP-MAIL-SMTP. But I'm still having trouble sending mail, my output is as follows:
The result was:
bool(true)
The full debugging output is shown below:
object(PHPMailer)#98 (53) {
["Priority"]=>
int(3)
["CharSet"]=>
string(5) "UTF-8"
["ContentType"]=>
string(10) "text/plain"
["Encoding"]=>
string(4) "8bit"
["ErrorInfo"]=>
string(35) "Language string failed to load: tls"
["From"]=>
string(16) "[email protected]"
["FromName"]=>
string(9) "xxxxxx.xx"
["Sender"]=>
string(0) ""
["Subject"]=>
string(47) "WP Mail SMTP: Test mail to [email protected]"
["Body"]=>
string(68) "This is a test email generated by the WP Mail SMTP WordPress plugin."
["AltBody"]=>
string(0) ""
["WordWrap"]=>
int(0)
["Mailer"]=>
string(4) "smtp"
["Sendmail"]=>
string(18) "/usr/sbin/sendmail"
["PluginDir"]=>
string(0) ""
["ConfirmReadingTo"]=>
string(0) ""
["Hostname"]=>
string(0) ""
["MessageID"]=>
string(0) ""
["Host"]=>
string(20) "xxxxx.xxxxxxx.xxx"
["Port"]=>
string(3) "465"
["Helo"]=>
string(0) ""
["SMTPSecure"]=>
string(3) "tls"
["SMTPAuth"]=>
bool(true)
["Username"]=>
string(22) "[email protected]"
["Password"]=>
string(13) "xxx"
["Timeout"]=>
int(10)
["SMTPDebug"]=>
int(2)
["SMTPKeepAlive"]=>
bool(false)
["SingleTo"]=>
bool(false)
["SingleToArray"]=>
array(0) {
}
["LE"]=>
string(1) "
"
["DKIM_selector"]=>
string(9) "phpmailer"
["DKIM_identity"]=>
string(0) ""
["DKIM_domain"]=>
string(0) ""
["DKIM_private"]=>
string(0) ""
["action_function"]=>
string(0) ""
["Version"]=>
string(3) "5.1"
["smtp":"PHPMailer":private]=>
object(SMTP)#97 (7) {
["SMTP_PORT"]=>
int(25)
["CRLF"]=>
string(2) "
"
["do_debug"]=>
int(2)
["do_verp"]=>
bool(false)
["smtp_conn":"SMTP":private]=>
int(0)
["error":"SMTP":private]=>
array(1) {
["error"]=>
string(38) "Called Reset() without being connected"
}
["helo_rply":"SMTP":private]=>
NULL
}
["to":"PHPMailer":private]=>
array(1) {
[0]=>
array(2) {
[0]=>
string(20) "[email protected]"
[1]=>
string(0) ""
}
}
["cc":"PHPMailer":private]=>
array(0) {
}
["bcc":"PHPMailer":private]=>
array(0) {
}
["ReplyTo":"PHPMailer":private]=>
array(0) {
}
["all_recipients":"PHPMailer":private]=>
array(1) {
["[email protected]"]=>
bool(true)
}
["attachment":"PHPMailer":private]=>
array(0) {
}
["CustomHeader":"PHPMailer":private]=>
array(0) {
}
["message_type":"PHPMailer":private]=>
string(5) "plain"
["boundary":"PHPMailer":private]=>
array(2) {
[1]=>
string(35) "b1_c67f7d9632b63e07cb05722c7e20a46c"
[2]=>
string(35) "b2_c67f7d9632b63e07cb05722c7e20a46c"
}
["language":protected]=>
array(17) {
["provide_address"]=>
string(54) "You must provide at least one recipient email address."
["mailer_not_supported"]=>
string(25) " mailer is not supported."
["execute"]=>
string(19) "Could not execute: "
["instantiate"]=>
string(36) "Could not instantiate mail function."
["authenticate"]=>
string(35) "SMTP Error: Could not authenticate."
["from_failed"]=>
string(35) "The following From address failed: "
["recipients_failed"]=>
string(45) "SMTP Error: The following recipients failed: "
["data_not_accepted"]=>
string(30) "SMTP Error: Data not accepted."
["connect_host"]=>
string(43) "SMTP Error: Could not connect to SMTP host."
["file_access"]=>
string(23) "Could not access file: "
["file_open"]=>
string(33) "File Error: Could not open file: "
["encoding"]=>
string(18) "Unknown encoding: "
["signing"]=>
string(15) "Signing Error: "
["smtp_error"]=>
string(19) "SMTP server error: "
["empty_message"]=>
string(18) "Message body empty"
["invalid_address"]=>
string(15) "Invalid address"
["variable_set"]=>
string(30) "Cannot set or reset variable: "
}
["error_count":"PHPMailer":private]=>
int(1)
["sign_cert_file":"PHPMailer":private]=>
string(0) ""
["sign_key_file":"PHPMailer":private]=>
string(0) ""
["sign_key_pass":"PHPMailer":private]=>
string(0) ""
["exceptions":"PHPMailer":private]=>
bool(false)
}
The SMTP debugging output is shown below:
SMTP -> FROM SERVER:
SMTP -> FROM SERVER:
SMTP -> ERROR: EHLO not accepted from server:
SMTP -> FROM SERVER:
SMTP -> ERROR: HELO not accepted from server:
SMTP -> NOTICE:
EOF caught while checking if connectedLanguage string failed to load: tls
Has anyone any thoughts ?
Regards.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
马特,谢谢你的帮助。
上周我进行设置时,我选择了错误的选项,输入了错误的密码。
再次感谢。
Matt, thanks for the help.
It was the end of the day when I was setting it up last week and I had the wrong options selected and the wrong password keyed in.
Thanks again.