Result Class |
Namespace: MailBee.BounceMail
The Result type exposes the following members.
Name | Description | |
---|---|---|
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
GetHashCode | Serves as the default hash function. (Inherited from Object.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
ToString | Returns a string that represents the current object. (Inherited from Object.) |
Name | Description | |
---|---|---|
DsnStructure | DsnAttachment object representing
RFC 1894 DSN attachment to this DSN message.
| |
OriginalMessage |
A reference to the original mail message for which this DSN message was sent.
| |
Recipients |
The list of delivery status information objects representing each recipient in the DSN message.
|
Use Process(MailMessage) method to get Result object for a DSN message.
Result object provides access to the Recipients collection of RecipientStatus objects which represent all recipients listed in the DSN message. Iterate through this collection to examine the delivery status for every recipient's e-mail address.
You can also use OriginalMessage property to get the e-mail message (usually, only its header) for which this DSN message was sent (i.e. you sent a message, it was not delivered to certain recipients and you got a DSN telling you that; the header of the original message you sent may be available in OriginalMessage property).
Use DsnStructure property to examine the DSN attachment (if available). This is alternative approach to examining Recipients collection, it should only be used in special cases when you need to extract specific information from the DSN attachment (for instance, you can use OriginalEnvelopeID property of DsnStructure object to match it to Smtp.DeliveryNotification.TrackingID of the e-mails you sent earlier).