Share via


FsrmSettingClass.EmailTest Method (String)

 

Send an email message to the specified email address.

Namespace:   Microsoft.Storage
Assembly:  srmlib (in srmlib.dll)

Syntax

public virtual void EmailTest(
    string MailTo
)
public:
virtual void EmailTest(
    String^ MailTo
)
abstract EmailTest : 
        MailTo:string -> unit
override EmailTest : 
        MailTo:string -> unit
Public Overridable Sub EmailTest (
    MailTo As String
)

Parameters

  • MailTo
    Type: System.String

    The email address. The string is limited to 255 characters.

Implements

IFsrmSetting.EmailTest(String)

Remarks

Use this method to test the SMTP server specified in the SmtpServer property. The sender is specified in the MailFrom property (cannot be set to "[Admin Email]").

The subject and message body are predefined, localized text.

See Also

FsrmSetting
IFsrmSetting
FsrmSettingClass Class
Microsoft.Storage Namespace

Return to top