Merchello Notification throwing this error: No connection could be made because the target machine actively refused it
Merchello Notification throwing this error: No connection could be made because the target machine actively refused it
当 Merchello 尝试发送电子邮件通知时,我遇到了这个异常:
目标机器主动拒绝,无法连接
我正在使用发送网格,我已经尝试了与我在 Local 上使用的完全相同的凭据,并且它在本地运行良好。
我确定这与服务器有关,到目前为止我已经尝试过:
- 确保 SMTP 服务在服务器运行上
- 在防火墙中打开587端口
- 暂时禁用防火墙
- 尝试了不同的 SMTP 提供商
将此添加到网络配置中:
<system.net>
<defaultProxy>
<proxy usesystemdefault="False"/>
</defaultProxy>
</system.net>
更多形式的堆栈跟踪:
System.Net.WebException: Unable to connect to the remote server --->
System.Net.Sockets.SocketException: No connection could be made because the
target machine actively refused it
有什么想法吗?谢谢
您的 IIS 绑定中可能为其他一些端口配置了相同的端口
您也可以在命令提示符的管理员模式下通过以下命令查看
C:>netstat -anb
我将端口更改为 25 并且成功了,不知道为什么要求我使用 587。
当 Merchello 尝试发送电子邮件通知时,我遇到了这个异常:
目标机器主动拒绝,无法连接
我正在使用发送网格,我已经尝试了与我在 Local 上使用的完全相同的凭据,并且它在本地运行良好。
我确定这与服务器有关,到目前为止我已经尝试过:
- 确保 SMTP 服务在服务器运行上
- 在防火墙中打开587端口
- 暂时禁用防火墙
- 尝试了不同的 SMTP 提供商
将此添加到网络配置中:
<system.net> <defaultProxy> <proxy usesystemdefault="False"/> </defaultProxy> </system.net>
更多形式的堆栈跟踪:
System.Net.WebException: Unable to connect to the remote server --->
System.Net.Sockets.SocketException: No connection could be made because the
target machine actively refused it
有什么想法吗?谢谢
您的 IIS 绑定中可能为其他一些端口配置了相同的端口
您也可以在命令提示符的管理员模式下通过以下命令查看
C:>netstat -anb
我将端口更改为 25 并且成功了,不知道为什么要求我使用 587。