The SetEmailing method sets the properties for sending an e-mail message when the report job is completed.
HRESULT SetEmailing( [in] VARIANT_BOOL fEnableEmailing, [in, optional] BSTR bstrSmtpServer, [in, optional] BSTR bstrEmailFrom, [in, optional] BSTR bstrEmailTo, [in, optional] BSTR bstrEmailCC, [in] BSTR bstrEmailBody, [in, optional] VARIANT_BOOL fAddLinkToPublishedReport );
Boolean value that indicates whether sending the e-mail message is enabled.
String value that specifies the name of the SMTP server to be used to send the e-mail message. The default value is an empty string (NULL).
String value that specifies the From line of the e-mail message. The default value is an empty string (NULL).
String value that specifies the To line of the e-mail message. The default value is an empty string (NULL).
String value that specifies the Cc line of the e-mail message. The default value is an empty string (NULL).
String value that specifies the body of the e-mail message.
Boolean value that indicates whether a link to the published report will be added to the body of the e-mail message. The default value is VARIANT_FALSE.
Sub SetEmailing( _ ByVal fEnableEmailing As Boolean, _ [ ByVal bstrSmtpServer As String ], _ [ ByVal bstrEmailFrom As String ], _ [ ByVal bstrEmailTo As String ], _ [ ByVal bstrEmailCC As String ], _ ByVal bstrEmailBody As String, _ [ ByVal fAddLinkToPublishedReport As Boolean ] _ )
Boolean value that indicates whether sending the e-mail message is enabled.
String value that specifies the name of the SMTP server to be used to send the e-mail message. The default value is an empty string (NULL).
String value that specifies the From line of the e-mail message. The default value is an empty string (NULL).
String value that specifies the To line of the e-mail message. The default value is an empty string (NULL).
String value that specifies the Cc line of the e-mail message. The default value is an empty string (NULL).
String value that specifies the body of the e-mail message.
Boolean value that indicates whether a link to the published report will be added to the body of the e-mail message. The default value is False.
This method has no return values. If the call is unsuccessful, an error is raised that can be intercepted by using an error handler.
This method sets the EnableEmailing, EmailFrom, EmailTo, EmailCC, EmailBody, AddLinkToPublishedReport, and SmtpServer properties.
Client | Requires Windows Vista or Windows XP. |
---|---|
Server | Requires Windows Server 2008. |
Version | Requires Forefront Threat Management Gateway (TMG). |
IDL |
Declared in Msfpccom.idl. |
DLL |
Requires Msfpccom.dll. |
Send comments about this topic to Microsoft
Build date: 11/30/2009
© 2008 Microsoft Corporation. All rights reserved.