【问题标题】:Using External SMTP Wordpress on VPS在 VPS 上使用外部 SMTP Wordpress
【发布时间】:2017-08-22 14:31:53
【问题描述】:

我已经在我的 VPS 服务器上安装了 Webmin,并且还安装了用于外发邮件的 Postfix。我使用 Ubuntu 作为操作系统

我将 SMTP 插件用于我的 wordpress 网站。我已经使用 Zoho SMTP 设置了 SMTP 设置,我确定所有设置都正常。

当我尝试使用 SMTP 测试电子邮件 Wordpress 插件发送消息时,我收到了这条消息

The SMTP debugging output is shown below:
2017-08-22 14:27:26 Connection: opening to smtp.zoho.com:587, timeout=300, options=array (
                                      )
2017-08-22 14:27:26 Connection: Failed to connect to server. Error number 2. "Error notice: stream_socket_client(): php_network_getaddresses: getaddrinfo failed: Temporary failure in name resolution
2017-08-22 14:27:26 Connection: Failed to connect to server. Error number 2. "Error notice: stream_socket_client(): unable to connect to smtp.zoho.com:587 (php_network_getaddresses: getaddrinfo failed: Temporary failure in name resolution)
2017-08-22 14:27:26 SMTP ERROR: Failed to connect to server: php_network_getaddresses: getaddrinfo failed: Temporary failure in name resolution (0)
2017-08-22 14:27:26 SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting

我已经研究过上述问题,但没有任何解决方案。但是,我很确定问题出在我的 VPS 邮件设置中,我不确定需要更改什么设置来解决这个 SMTP 问题。

【问题讨论】:

    标签: php wordpress email smtp vps


    【解决方案1】:

    尝试使用以下命令连接到您的 smtp 服务器:

    telnet hostname 25
    

    或使用 ssl

    openssl s_client -connect hostname:25 -starttls smtp
    

    如果需要,将端口更改为 587。看看会发生什么。

    您可以在没有 smtp 服务器的情况下从 wordpress 发送电子邮件试试这个插件 https://wordpress.org/plugins/blastex/

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2018-10-16
      • 2015-04-14
      • 2012-08-06
      • 2012-07-30
      • 2018-11-19
      • 1970-01-01
      • 2012-05-23
      • 1970-01-01
      相关资源
      最近更新 更多