简体   繁体   中英

Reporting Services Subscriptions won't allow modification of the To: Field

I have a little issue that is causing me a headache. Our Report Server is SQL Ent 2008 on a Win 2008 server. When users that have Report Browser permissions try to set up a report subscription the To: field is grayed out and pre-populated with their username. They cannot change this and it won't deliver to their email address which would be username@domain.com. Any leads would be greatly appreciated.

"Site Settings".."Configure item-level role definitions".."Browser"

They can only "Manage individual subscriptions". SSRS won't allow the email address to be changed because they could put any stuff in there.

In BOL, Managing Subscriptions ... and How to: Subscribe to a Report (Report Manager) , which leads to Configuring a Report Server for E-Mail Delivery . This says:

Configuration Options for Setting the To: Field in a Message

User-defined subscriptions that are created according to the permissions granted by the Manage individual subscriptions task contain a pre-set user name that is based on the domain user account. When the user creates the subscription, the recipient name in the To: field is self-addressed using the domain user account of the person creating the subscription.

If you are using an SMTP server or forwarder that uses e-mail accounts that are different from the domain user account, the report delivery will fail when the SMTP server tries to deliver the report to that user.

To workaround this issue, you can modify configuration settings that allow users to enter a name in the To: field:

  1. Open RSReportServer.config with a text editor.
  2. Set SendEmailToUserAlias to False.
  3. Set DefaultHostName to the Domain Name System (DNS) name or IP address of the SMTP server or forwarder.
  4. Save the file.

I realize that this is on a 3 year old post (there was activity on it 5 months ago as of this posting though) but I found one other tid-bit that may be of use to others trying to get around this.

As part of the configuration file RSReportServer.config as mentioned in above answers found at installdir \\Reporting Services\\ReportServer\\ there is a section of the file that you can add your domain name to that works in conjunction with the users alias.

The tag to edit is as stated in Microsofts documentation this value works with the tag when it's set to true. 如微软文档中所述,当设置为true时,此值与标记一起使用。

The end user still has a grayed out To: field that shows their AD user alias, however when they setup a subscription to email a report, at execution time the SMTP server appends the specified domain (from the DefaultHostName tag) to the alias.

I didn't want to go with the work-a-round specified in the previous answer as I did not want end users to be able to specify any email address.

This worked for me in SSRS for SQL 2008 R2. Documentation from Microsoft here (http://msdn.microsoft.com/en-us/library/ms157273.aspx#bkmk_email_extension)

NB make sure you turn of the reporting services process before changing the file, after making and saving the changes, start the process back up.

I added to gbn's version of the solution.

1.Open RSReportServer.config with a text editor.

2.Set SendEmailToUserAlias to True. (So the To: is not blank)

3.Set DefaultHostName to the Domain Name System (DNS) name or IP address of the SMTP server or forwarder.

4.Save the file.

This version will show your alias in the To: section and the email will go through now.

This works fine.

Just to let you know the file is in the following location (save you looking for it). RSReportServer.config is located in the %Program Files%\\Microsoft SQL Server\\MSSQL.n\\Reporting Services\\ReportServer folder

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM