SendMail (Dundas Mailer Control 1.0)

Dundas

SendMail (Dundas Mailer Control 1.0)

Overview | Properties | Methods

Use this method to send an email.

Syntax

MailerObject.SendMail()

Remarks

An exception is thrown if an error occurs. Trap for the success/failure of the operation by examining VBScript's Err object immediately after calling this method (the Number property of the Err object will be a non-zero value if an error occurred). MAKE SURE that you have enabled inline error trapping by using an On Error Resume Next statement at the beginning of the ASP page. If an SMTP relay server is being used to send the message then the indicated success/failure only pertains to getting the message to the relay server. The mail operation is then in the hands of the relay server.

To send an email with this method you MUST specify the message recipient(s) by using either the TOs, CCs or BCCs collections. To set the body of the email use the Body property and/or the HtmlBody property. To specify the Subject use the Subject property.

SendMail uses ALL properties and collections of the Dundas Mailer control.

The advantage of using SendMail as opposed to QuickSend is that SendMail incorporates all features of the Dundas Mailer control.

Unlike the QuickSend method SendMail is capable of sending a message with an html body.

For example source code illustrating the use of SendMail see one of the following tutorials:

See Also: QuickSend