我有一份使用的报告SSRS 2008 R2,我想使用“电子邮件”选项订阅此报告。我已在报告服务管理器中配置设置,将服务器用作“smtp.gmail.com”,并将发件人地址用作我的 gmail ID。
我还尝试使用 SMTP 虚拟服务器并使用智能主机“smtp.gmail.com”进行中继。但我在发送电子邮件时收到以下错误:
发送邮件失败:传输无法连接到服务器。
我在用IIS 7 and Windows Server 2008。以下是我的片段rsreportserver.config
file:
<SMTPServer>smtp.gmail.com</SMTPServer>
<SMTPServerPort>587
</SMTPServerPort>
<SMTPAccountName>
</SMTPAccountName>
<SMTPConnectionTimeout>
</SMTPConnectionTimeout>
<SMTPServerPickupDirectory>
</SMTPServerPickupDirectory>
<SMTPUseSSL>True
</SMTPUseSSL>
<SendUsing>2</SendUsing>
<SMTPAuthenticate></SMTPAuthenticate>
<From>[email protected] /cdn-cgi/l/email-protection</From>
任何帮助将不胜感激。
谢谢
我在连接 SSRS 2017 时遇到问题。我尝试了十几种不同的建议,最终得到以下建议。我不需要在 Windows 服务器上设置 SMTP 中继或 SMTP 服务。
Open 报告服务配置管理器。去电子邮件设置>>>
- 发件人地址:[user]@gmail.com(或您的 G-Suite 域)
- 当前传送方式:使用 SMTP 服务器
- SMTP 服务器:smtp.gmail.com
- Authentication=“用户名和密码(基本)”
- 用户名:[user]@gmail.com(或您的 G-Suite 域)
- Password
- 确认密码
- 使用安全连接:选中
现在转到rsreportserver.config文件。我的位于
C:\Program Files\Microsoft SQL Server Reporting Services\SSRS\ReportServer\rsreportserver.config
找出<SMTPServerPort>
并设置为587
Saversreportserver.config
您还需要在 Google 帐户设置的安全部分中启用“不太安全的应用程序访问”,否则会引发身份验证错误。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)