Options Property

Gets and sets the options for the current object.

Syntax

object.Options [= value]

The Options property syntax has the following parts:

Part Description
object An object expression that evaluates to an InternetMail object.
value A long integer which specifies one or more options.

Remarks

The Options property returns or modifies the options used for retrieving and sending messages. The value is represented as one or more bit flags which may be combined using the logical or operator. The following options are defined:

Value Constant Description
1 mailOptionImplicitSSL This option specifies that an implicit SSL session should be established with the mail server and prevents the use of a command which is used to negotiate an explicit SSL connection. This option should only be used if it is required.
2 mailOptionAPOP Causes the APOP authentication method to be used when connecting to a POP3 mail server. The default is to use standard password authentication.
256 mailOptionAllHeaders Preserves all headers in the message when it is exported, including the Received and Return-Path headers which are normally excluded.
512 mailOptionKeepOrder Preserves the order of the headers when it is exported; by default, some headers may be re-ordered.
&HF0000 mailOptionNotify Notify the sender of the delivery status of the message, if the server supports delivery status notification. This option is a combination of the mailNotifySuccess, mailNotifyFailure, mailNotifyDelay and mailReturnHeaders options.
&H10000 mailNotifySuccess If the mail server supports delivery status notification, this causes a message to be returned to the sender once it has been successfully delivered.
&H20000 mailNotifyFailure If the mail server supports delivery status notification, this causes a message to be returned to the sender if it could not be delivered.
&H40000 mailNotifyDelay If the mail server supports delivery status notification, this causes a message to be returned to the sender if delivery has been delayed.
&H80000 mailReturnHeaders If the mail server supports delivery status notification, this causes a message to be returned which contains the headers of the message that was sent.
&H100000 mailReturnMessage If the mail server supports delivery status notification, this causes a message to be returned which contains the complete message that was sent.

Data Type

Integer


Copyright © 2008 Catalyst Development Corporation. All rights reserved.