我正在使用PHPMailer在PHP(PHP版本5.3.7)中生成邮件。但我一次又一次地尝试过,但PHPMailer不能使用我的提供者的设置,但使用我的Gmail帐户。 我的设置:PHPMailer和SMTP连接错误:节点名称或服务名称未知
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: [email protected] : Called Mail() without being connected
请帮助我,由于我不知道是什么原因造成这个错误,为什么?
我没有访问服务器控制台,但正如我在下面写的,我已经解决了这个问题。感谢您的帮助,如果错误再次出现,我会测试您的解决方案。 – user1995621