我有一份使用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)
任何帮助将不胜感激。谢谢