A Sandcastle Documented Class Library

# IEmailService SendTestEmail Method

Uses the application's configured email settings to send a test email.

Namespace: Dundas.BI.Services
Assembly: Dundas.BI.Core (in Dundas.BI.Core.dll) Version: 2.0.0.0 (10.0.0.1002)
Syntax
C#
VB
C++
F#
Copy

    void SendTestEmail(
    	MailAddress toAddress
    )

    Sub SendTestEmail (
    	toAddress As MailAddress
    )

    void SendTestEmail(
    	MailAddress^ toAddress
    )

    abstract SendTestEmail :
            toAddress : MailAddress -> unit

#### Parameters

toAddress
  Type: System.Net.Mail
  MailAddress
  The email address to which the test email will be sent, or
  if it should be sent to the email address associated with the caller.

Exceptions

Exception | Condition
--- | ---
NotSupportedException | EnsureEmailServiceEnabled did not succeed.
InvalidOperationException | If toAddress is , and the email address of the caller is invalid.
OperationFailedException | An unexpected error occurred when sending the email message.
NoPrivilegeException | toAddress has been provided, but the caller does not have system administration privileges.
InvalidSessionException | The caller context is not associated with a valid session.

See Also

#### Reference

IEmailService Interface
Dundas.BI.Services Namespace