QuickSend (Dundas Mailer Control 1.0)

Dundas

QuickSend (Dundas Mailer Control 1.0)

Overview | Properties | Methods

Use this method to send an email. Most headers are set explicitly via the method's arguments.

Syntax

[long] = MailerObject.QuickSend(From as string, To as string, Subject as string, Body as string, [CC as string, Attachments as string])

The QuickSend method syntax has the following parts:

Part

Description

From

The sender of the email. Usually this is the email address of the person sending the message. You can optionally precede the sender's address with the name of the sender.

To

Destination address of the email. You can optionally precede the address with the recipient's name.

Subject

Subject of the message.

Body

Body of the message.

CC

Optional. Email address(es) to have carbon copies of the message sent to.

Attachments

Optional. A comma-delimited list of attachments to be sent with the email.

  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.

You can use this method to send an email without having to set any properties or collections.

You must provide values for the From, To, Subject and Body arguments when calling this method.

The following is a listing of optional properties/collections which are utilized by QuickSend:

Note that QuickSend does not support html email. To send a message with an html body call the SendMail method.

To specify multiple values for the To or Cc arguments separate the multiple entries with commas.

For example source code on how to use this method see QuickStart.

See Also: SendMail