:GetDeliveryOptions()


Class

     aprSMTP()

 

Syntax

     :GetDeliveryOptions( [hSession] ) -> aOptions

 

Parameters

 

hSession

Optional: If hSession is not passed, the value in :Session will be used

 

Return

An array containing logical values for each option set.

 

Description

 The :GetDeliveryOptions() method returns the delivery status notification options for the current session.

 

Note that delivery options are only available on those mail servers which support delivery status notification (DSN) using the extended SMTP protocol. The client must identify itself using the :HelloEx() method in order to use extended server options.

 

 

Value

Constant

Description

1

SMTP_IS_NOTIFY_NEVER

Never return information about the success or failure of the message delivery process.

2

SMTP_IS_NOTIFY_SUCCESS

Return a message to the sender if the message has been successfully delivered to the recipient's mail server.

3

SMTP_IS_NOTIFY_FAILURE

Return a message to the sender if the message could not be delivered to the recipient's mail server.

4

SMTP_IS_NOTIFY_DELAY

Return a message to the sender if delivery of the message was delayed.

5

SMTP_IS_RETURN_HEADER

Return only the message headers to the sender.

6

SMTP_IS_RETURN_MESSAGE

Return the complete message headers and body to the sender.

 

 

 

See Also

:GetExtendedOptions(), :HelloEx(), :SetDeliveryOptions()