我正在尝试在 Windows 2008 Server 上设置伪造的 sendmail (sendmail.exe),以便 PHP(最终是 Joomla)可以使用我的提供商的 SMTP 服务器发送消息。但是,在使用 XAMPP 的简单电子邮件表单时,我不断收到以下错误:
Socket Error # 10061<EOL>Connection refused.
这看起来很奇怪,因为我可以使用 Thunderbird 和相同的 SMTP 配置从这台机器发送邮件。以下是 sendmail.ini 中的相关条目:
smtp_server=smtp.1und1.de
smtp_port=587
smtp_ssl=auto
auth_username=<email>
auth_password=<password>
尝试强制 SSL 或 TLS 无效。
sendmail 的 debug.log:
14.03.17 13:37:17 ** --- MESSAGE BEGIN ---
14.03.17 13:37:17 ** To: <recipient email>
14.03.17 13:37:17 ** Subject: Test
14.03.17 13:37:17 ** MIME-Version: 1.0
14.03.17 13:37:17 ** Content-type: text/html; charset=iso-8859-1
14.03.17 13:37:17 ** To: <recipient email>
14.03.17 13:37:17 ** From: <sender email>
14.03.17 13:37:17 **
14.03.17 13:37:17 ** test test
14.03.17 13:37:17 ** --- MESSAGE END ---
14.03.17 13:37:18 ** Connecting to smtp.1und1.de:587
14.03.17 13:37:18 ** Disconnected.
14.03.17 13:37:18 ** Disconnected.
14.03.17 13:37:18 ** Disconnected.
14.03.17 13:37:18 ** Socket Error # 10061<EOL>Connection refused.
任何帮助表示赞赏。