我在Drupal 7中安装并配置了具有适当详细信息的smtp模块。我尝试在Windows 2012服务器中发送测试邮件,但收到以下错误。
**SMTP -> ERROR: Failed to connect to server: php_network_getaddresses: getaddrinfo failed: This is usually a temporary error during hostname resolution and means that the local server did not receive a response from an authoritative server. (0)
SMTP Error: Could not connect to SMTP host.
无法发送电子邮件。如果问题仍然存在,请与站点管理员联系。 **
在Windows Xp,07和ubuntu环境中,相同的构建工作正常。是什么导致了这个问题?
答案 0 :(得分:0)
更正用于gmail SMTP配置的TLS端口。它应该是587.您可以参考下面的链接 -