Dart Smtp, Pop, Imap Controls
DSN Method
Defaults to msgHeader to return the header. If msgMessage, DSN will return the entire message.
Included in the return message header. The default is an empty string.
Description
Set parameters that define the type of Delivery Status Notification that will be requested for subsequent messages.
Syntax
Visual Basic
Public Sub DSN( _
   ByVal Notify As DsnConstants, _
   Optional ByVal Segment As SegmentConstants = msgHeader, _
   Optional ByVal EnvelopeId As String _
) 
Parameters
Notify
ValueDescription
dsnDefaultDirects the server to follow its default policy for DSN.
dsnDelayRequests DSN for delayed delivery.
dsnFailureRequests DSN for failure of delivery.
dsnFailureDelayRequests DSN for failure or delay of delivery.
dsnNeverDirects the server not to send DSN under any circumstances.
dsnSuccessRequests DSN for successful delivery.
dsnSuccessDelayRequests DSN for success for delay of delivery.
dsnSuccessFailureRequests DSN for success or Failure of delivery.
dsnSuccessFailureDelayRequests DSN for success, failure, or delay of delivery.
Segment
ValueDescription
msgHeaderPerform the operation on the header of the message.
msgMessagePerform the operation on the complete message.
Defaults to msgHeader to return the header. If msgMessage, DSN will return the entire message.
EnvelopeId
Included in the return message header. The default is an empty string.
Remarks

If EnvelopeId is provided, the value will be included in any returned messages by the addition of a header to the notification message of the form:

Original-Envelope-ID: <EnvelopeId>

Reserved characters contained in the EnvelopeId string are encoded before transmittal.

Refer to RFC 1891 for additional information about return notifications.

The following example code requests DSN for message delivery success and failure, requests return of the message, and provides an identifying label to aid in processing the return receipt:

Smtp1.DSN dsnSuccessFailure, msgMessage, "bounce-2118"
See Also

Smtp Object  | Smtp Members


PowerTCP SSL for ActiveX Documentation Version 2.2.1
© 2018 Dart Communications. All Rights Reserved.
Send comments on this topic