从Sql Server 2008 R2发送数据库邮件失败.像错误无法连接到邮件服务器. (试图以一种其访问权限禁止的方式访问套接字吗?

问题描述:

大家好.
我正在从sql server 2008 r2发送电子邮件.

数据库邮件配置详细信息设置为:
-------------------------------------------------- ------------

Hi everyone.
i am sending email from sql server 2008 r2.

database mail configuration details set as :
--------------------------------------------------------------

Server Name : smtp.gmail.com
Port No : 587
Set Basic Authentication : User Name, Password



我尝试了更多,但是电子邮件发送失败并且发生错误是-:



i tried more but email sending is failed and error occur is-:

The mail could not be sent to the recipients because of the mail server failure. (Sending Mail using Account 2 (2012-05-03T15:46:30). Exception Message: Could not connect to mail server. (An attempt was made to access a socket in a way forbidden by its access permissions 173.194.79.108:587). )




致谢:
Ganpat Sharma




Thanks and Regards:
Ganpat Sharma

最可能的原因是防火墙阻止了通信.定义防火墙的例外,以允许通过端口587的流量(这似乎是您使用的端口).
The likeliest reason is that the firewall is blocking the communication. Define an exception to the firewall to allow traffic through port 587 (that seems to be the one you use).