Smtp 集成SendGrid
我正在尝试将SendGrid集成到MVC应用程序中。 它正在使用端口587。并且启用了SSLSmtp 集成SendGrid,smtp,sendgrid,Smtp,Sendgrid,我正在尝试将SendGrid集成到MVC应用程序中。 它正在使用端口587。并且启用了SSL Host = "smtp.sendgrid.net"; 当我尝试发送电子邮件时,它会抛出: System.Net.Sockets.SocketException:无法建立连接,因为目标计算机主动拒绝连接159.122.224.196:587 Message : Failure sending mail. 另外,当我ping smtp.sendgrid.net时,它正在使用IP 159.122.2
Host = "smtp.sendgrid.net";
当我尝试发送电子邮件时,它会抛出:
System.Net.Sockets.SocketException:无法建立连接,因为目标计算机主动拒绝连接159.122.224.196:587
Message : Failure sending mail.
另外,当我ping smtp.sendgrid.net时,它正在使用IP 159.122.224.197您的计算机上是否运行防火墙/防病毒应用程序来阻止端口587上的传出请求?如果是这样,请添加一条规则以允许在端口587上发出请求。每个SendGrid入站地理位置都有2个IP,因此
.196
vs.197
可以。如果你运行一个程序,它能工作吗?