从Sql Server 2008 R2发送数据库邮件失败.像错误无法连接到邮件服务器. (试图以一种其访问权限禁止的方式访问套接字吗? [英] Database Mail Sending Failed From Sql Server 2008 R2 . Error Like Could not connect to mail server. (An attempt was made to access a socket in a way forbidden by its access permissions ?

查看:374
本文介绍了从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).


这篇关于从Sql Server 2008 R2发送数据库邮件失败.像错误无法连接到邮件服务器. (试图以一种其访问权限禁止的方式访问套接字吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆