Reporting Services 數據警示會在電子郵件訊息中傳送警示。 若要傳送電子郵件,您可能需要設定 Reporting Services 服務應用程式,而且您可能需要修改服務應用程式的電子郵件傳遞延伸模組。 如果您打算使用 Reporting Services 訂閱功能的電子郵件傳遞延伸模組,也需要電子郵件設定。
| 適用於: Reporting Services SharePoint 模式 |SharePoint 2010 和 SharePoint 2013。 |
設定電子郵件以用於共用服務
在 SharePoint 管理中心中,按兩下 [應用程式管理]。
在 [ 服務應用程式] 群組中,按兩下 [ 管理服務應用程式]。
在 [ 名稱] 列表中,按下 Reporting Services 服務應用程式的名稱。
點擊電子郵件設定,位於管理 Reporting Services 應用程式頁面。
選取 [使用 SMTP 伺服器]。
在 [ 輸出 SMTP 伺服器 ] 方塊中,輸入 SMTP 伺服器的名稱。
在 [ 從位址 ] 方塊中,輸入電子郵件位址。
此位址是所有警示電子郵件訊息的寄件者。
在 From address 中指定的使用者帳戶必須是您在為 Reporting Services 服務應用程式設定應用程式集區時所指定的受控帳戶。 如果您有許可權,您可以在 SharePoint 管理中心的 [服務帳戶] 頁面上檢視現有受管理帳戶的清單。
按一下 [確定]。
NTLM 驗證
如果您的電子郵件環境需要NTLM驗證,且不允許匿名存取,您必須修改 Reporting Services 服務應用程式的電子郵件傳遞延伸模組組態。 將 SMTPAuthenticate 變更為使用 「2」 的值。 這個值無法從使用者介面變更。 下列 PowerShell 腳本範例會更新名為 「SSRS_TESTAPPLICATION」 之服務應用程式之報表伺服器電子郵件傳遞延伸模組的完整組態。 請注意,腳本中所列的一些節點也可以從使用者介面設定,例如“From” 位址。
$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如果您需要驗證服務應用程式的名稱,請執行 Get-SPRSServiceApplication Cmdlet。
Get-SPRSServiceApplication下列範例會針對名為 「SSRS_TESTAPPLICATION」 的服務應用程式,傳回電子郵件擴充功能的目前值。
$app = get-sprsserviceapplication | Where {$_.name -like "SSRSTEST_APPLICATION*"} Get-SPRSExtension -Identity $app -ExtensionType "Delivery" -Name "Report Server Email" | Select -ExpandProperty ConfigurationXml下列範例會針對名為 「SSRS_TESTAPPLICATION」 的服務應用程式,建立名為 「emailconfig.txt」 的新檔案,其中包含目前電子郵件擴展名的值
$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