use*_*411 4 sql-server iis-7 reporting-services ssrs-2008
我有一份使用SSRS 2008 R2的报告,我想使用“电子邮件”选项订阅此报告。我在 Reporting Services Manager 中配置了设置,将服务器用作“smtp.gmail.com”,将发件人地址用作我的 gmail ID。
我还尝试使用 SMTP 虚拟服务器并使用智能主机作为“smtp.gmail.com”进行中继。但是我在发送电子邮件时收到以下错误:
发送邮件失败:传输无法连接到服务器。
我正在使用IIS 7和Windows Server 2008。以下是我的rsreportserver.config文件片段:
<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>
Run Code Online (Sandbox Code Playgroud)
任何帮助将不胜感激。谢谢
我在连接 SSRS 2017 时遇到问题。我尝试了十几种不同的建议,最终得到了以下建议。我不需要在 Windows 服务器上设置 SMTP 中继或 SMTP 服务。
打开Reporting Services 配置管理器。转到电子邮件设置>>>
现在转到rsreportserver.config文件。我的位于 C:\Program Files\Microsoft SQL Server Reporting Services\SSRS\ReportServer\rsreportserver.config
找到<SMTPServerPort>并设置为587
保存rsreportserver.config
据我所知,听起来您可能必须设置一个本地 SMTP 中继服务器来发送电子邮件,b/c SSRS 要求“报表服务器服务必须在 SMTP 服务器上具有发送为权限”,并且不要求似乎提供了输入密码的任何选项。我假设 SSRS 订阅电子邮件设置仅适用于使用 Windows 身份验证,因为它使用 SSRS 服务,但配置文档含糊不清。(http://technet.microsoft.com/en-us/library/ms345234(v=sql.105).aspx)
这是显示如何设置 SMTP 中继服务器的链接http://www.vsysad.com/2012/04/setup-and-configure-smtp-server-on-windows-server-2008-r2/
以下是您需要执行的不同步骤。
然后在 SSRS SMTP 配置中指定您刚刚在上面创建的 SMTP 服务器。
如果您尚未启用 POP3,您可能还需要在您的 Gmail 帐户上启用 POP3。https://support.google.com/mail/answer/13273?cbid=wl8yzeug2lob&src=cb&lev=topic
| 归档时间: |
|
| 查看次数: |
20162 次 |
| 最近记录: |