【发布时间】:2014-02-24 02:48:33
【问题描述】:
我有一份使用 SSRS 2008 R2 的报告,我想使用“电子邮件”选项订阅此报告。我已将报告服务管理器中的设置配置为将服务器用作“smtp.gmail.com”并将发件人地址用作我的 gmail ID。
我还尝试使用 SMTP 虚拟服务器并使用智能主机将其中继为“smtp.gmail.com”。但是我在发送电子邮件时收到以下错误:
发送邮件失败:传输无法连接到服务器。
我正在使用 IIS 7 和 Windows Server 2008。以下是我的rsreportserver.config 文件的 sn-p:
<SMTPServer>smtp.gmail.com</SMTPServer>
<SMTPServerPort>587
</SMTPServerPort>
<SMTPAccountName>
</SMTPAccountName>
<SMTPConnectionTimeout>
</SMTPConnectionTimeout>
<SMTPServerPickupDirectory>
</SMTPServerPickupDirectory>
<SMTPUseSSL>True
</SMTPUseSSL>
<SendUsing>2</SendUsing>
<SMTPAuthenticate></SMTPAuthenticate>
<From>myid@gmail.com</From>
任何帮助将不胜感激。 谢谢
【问题讨论】:
-
您是否在您的 Gmail 设置中启用了 SMTP,以及您的密码在哪里?粘贴完整的配置文件。
-
是的,我已在我的 gmail 帐户设置中启用。关于config文件中的密码,不存在携带密码信息的节点,该如何介绍呢?我在虚拟服务器中设置了我的凭据并将 SMTPServer 节点值更改为虚拟服务器地址..但错误仍然存在
标签: sql-server reporting-services iis-7 ssrs-2008