0

I'm using PHPMailer to generate mails in PHP (PHP Version 5.3.7). But I have tried it again and again, but PHPMailer doesn't work with the settings from my provider but with my gmail account. My settings:

SMTP = true
SMTPAuth = true
CharSet = UTF-8
SethSecure = ""
Host = smtp.strato.de
User = myemail
Password = **********
port = 587

But PHPMailer returns the following messages (in debug mode):

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

Please help me due to I don't know what has caused this error and why?

4

2 回答 2

0

听起来您的 DNS 服务器无法解析 smtp.strato.de。尝试在您的服务器上打开命令提示符,然后键入:

nslookup smtp.strato.de

它解决了吗?如果没有,请尝试使用不同的 DNS 服务器(通过更改 /etc/resolve.conf)。事实上,它确实在我测试过的服务器上解析。

于 2013-07-24T19:02:54.043 回答
0

我自己有问题,似乎我忘记在 PHPMailer 中添加 FROM 电子邮件地址。

于 2013-07-24T20:53:19.297 回答