設定 Reporting Services 服務應用程式的電子郵件 (SharePoint 2010 和 SharePoint 2013)Configure E-mail for a Reporting Services Service Application (SharePoint 2010 and SharePoint 2013)

Reporting ServicesReporting Services 資料警示以電子郵件訊息傳送警示。data alerting sends alerts in e-mail messages. 若要傳送電子郵件,您可能需要設定 Reporting ServicesReporting Services 服務應用程式,以及修改服務應用程式的電子郵件傳遞延伸模組。To send e-mail you may need to configure your Reporting ServicesReporting Services service application and you may need to modify the e-mail delivery extension for the service application. 如果您計劃針對 Reporting ServicesReporting Services 訂閱功能使用電子郵件傳遞延伸模組,也需要電子郵件設定。The e-mail settings are also required if you plan to use the e-mail delivery extension for the Reporting ServicesReporting Services subscription feature.

適用於:Applies to: Reporting ServicesReporting Services SharePoint 模式|SharePoint 2010 和 SharePoint 2013。Reporting ServicesReporting Services SharePoint mode | SharePoint 2010 and SharePoint 2013.

設定共用服務的電子郵件To configure e-mail for the shared service

  1. 在 SharePoint 管理中心中,按一下 [應用程式管理]In SharePoint Central Administration, click the Application Management.

  2. [服務應用程式] 群組中,按一下 [管理服務應用程式]In the Service Applications group, click Manage service applications.

  3. [名稱] 清單中,按一下 Reporting ServicesReporting Services 服務應用程式的名稱。In the Name list, click the name of your Reporting ServicesReporting Services service application.

  4. 在 [管理 Reporting Services 應用程式] 頁面上,按一下 [電子郵件設定] 。Click E-mail Settings on the Manage Reporting Services Application page.

  5. 選取 [使用 SMTP 伺服器]Select Use SMTP server.

  6. [外送 SMTP 伺服器] 方塊中,輸入 SMTP 伺服器的名稱。In the Outbound SMTP server box, type the name of an SMTP server.

  7. 在 [來源位址] 方塊中,鍵入電子郵件地址。In the From address box, type an e-mail address.

    此地址是所有警示電子郵件訊息的寄件者地址。This address is the sender of all alert e-mail messages.

    [來源位址] 中指定的使用者帳戶,必須是您在設定 Reporting ServicesReporting Services 服務應用程式的應用程式集區時,所指定的受管理帳戶。The account of the user specified in From address must be a managed account that you specified when you configured the application pool for the Reporting ServicesReporting Services service application. 如果您具有權限,您可以在 SharePoint 管理中心的 [服務帳戶] 頁面上,檢視現有受管理帳戶的清單。If you have permission, you can view a list of existing managed accounts on the Service Accounts page in SharePoint Central Administration.

  8. 按一下 [確定] 。Click OK.

NTLM 驗證NTLM Authentication

  1. 如果您的電子郵件環境需要 NTLM 驗證,且不允許匿名存取,您需要修改 Reporting ServicesReporting Services 服務應用程式的電子郵件傳遞延伸模組組態。If your email environment requires NTLM authentication and does not allow anonymous access, you need to modify the e-mail delivery extension configuration for your Reporting ServicesReporting Services service applications. SMTPAuthenticate 變更為使用值 "2"。Change the SMTPAuthenticate to use a value of "2". 您無法從使用者介面變更此值。This value cannot be changed from the user interface. 下列 PowerShell 指令碼範例會更新服務應用程式 "SSRS_TESTAPPLICATION" 之報表伺服器電子郵件傳遞延伸模組的完整設定。The following PowerShell script example, updates the full configuration for the report server e-mail delivery extension for the service application named "SSRS_TESTAPPLICATION". 請注意,指令碼中列出的部分節點也可以透過使用者介面設定,例如 [寄件者] 地址。Note some of the nodes listed in the script can also be set from the user interface, for example the "From" address.

    $app=get-sprsserviceapplication |where {$_.name -like "SSRS_TESTAPPLICATION *"}  
    $emailCfg = Get-SPRSExtension -identity $app -ExtensionType "Delivery" -name "Report Server Email" | select -ExpandProperty ConfigurationXml   
    $emailXml = [xml]$emailCfg   
    $emailXml.SelectSingleNode("//SMTPServer").InnerText = "your email server name"  
    $emailXml.SelectSingleNode("//SendUsing").InnerText = "2"  
    $emailXml.SelectSingleNode("//SMTPAuthenticate").InnerText = "2"  
    $emailXml.SelectSingleNode("//From").InnerText = "your FROM email address"  
    Set-SPRSExtension -identity $app -ExtensionType "Delivery" -name "Report Server Email" -ExtensionConfiguration $emailXml.OuterXml  
    
  2. 如果您需要確認服務應用程式的名稱,請執行 Get-SPRSServiceApplication CmdletIf you need to verify the name of your service application, run the Get-SPRSServiceApplication cmdlet.

    get-sprsserviceapplication  
    
  3. 下列範例會傳回服務應用程式 "SSRS_TESTAPPLICATION" 的電子郵件延伸模組目前值。The following example will return the current values of the e-mail extension for the service application named "SSRS_TESTAPPLICATION".

    $app=get-sprsserviceapplication |where {$_.name -like "SSRSTEST_APPLICATION*"}  
    Get-SPRSExtension -identity $app -ExtensionType "Delivery" -name "Report Server Email" | select -ExpandProperty ConfigurationXml  
    
  4. 下列範例會使用服務應用程式 "SSRS_TESTAPPLICATION" 的電子郵件延伸模組目前值,建立名為 "emailconfig.txt" 的新檔案The following example will create a new file named "emailconfig.txt" with the current values of the e-mail extension for the service application named "SSRS_TESTAPPLICATION"

    $app=get-sprsserviceapplication |where {$_.name -like "SSRS_TESTAPPLICATION*"}  
    Get-SPRSExtension -identity $app -ExtensionType "Delivery" -name "Report Server Email" | select -ExpandProperty ConfigurationXml | out-file c:\emailconfig.txt