【发布时间】:2013-07-24 05:26:33
【问题描述】:
我正在使用 PHPMailer 在 PHP(PHP 版本 5.3.7)中生成邮件。但是我一次又一次地尝试过,但是 PHPMailer 不能使用我的提供商的设置,而是使用我的 gmail 帐户。 我的设置:
SMTP = true
SMTPAuth = true
CharSet = UTF-8
SethSecure = ""
Host = smtp.strato.de
User = myemail
Password = **********
port = 587
但是 PHPMailer 返回以下消息(在调试模式下):
SMTP -> ERROR: Failed to connect to server: php_network_getaddresses: getaddrinfo failed:
node name or service name not known (0)
The following From address failed: info@burk-co.com : Called Mail() without being connected
由于我不知道导致此错误的原因以及原因,请帮助我?
【问题讨论】:
标签: php email smtp phpmailer smtp-auth