Options Property  
 

Gets and sets the options for the current object.

Syntax

object.Options [= value ]

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 Description
mailOptionImplicitSSL This option specifies that an implicit TLS session should be established with the mail server and prevents the use of a command which is used to negotiate an explicit TLS connection. This option should only be used if it is required.
mailOptionAPOP Causes the APOP authentication method to be used when connecting to a POP3 mail server. The default is to use standard password authentication.
mailOptionAllHeaders Preserves all headers in the message when it is exported, including the Received and Return-Path headers which are normally excluded.
mailOptionKeepOrder Preserves the order of the headers when it is exported; by default, some headers may be re-ordered.
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.
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.
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.
mailNotifyDelay If the mail server supports delivery status notification, this causes a message to be returned to the sender if delivery has been delayed.
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.
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 (Int32)