Result Class
Represents the result checking an e-mail message for delivery status notification (DSN) entries.
Inheritance Hierarchy
SystemObject
  MailBee.BounceMailResult

Namespace: MailBee.BounceMail
Assembly: MailBee.NET (in MailBee.NET.dll) Version: 12.4 build 677 for .NET 4.5
Syntax
public class Result

The Result type exposes the following members.

Methods
  NameDescription
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Properties
  NameDescription
Public propertyCode exampleDsnStructure
DsnAttachment object representing RFC 1894 DSN attachment to this DSN message.
Public propertyCode exampleOriginalMessage
A reference to the original mail message for which this DSN message was sent.
Public propertyCode exampleRecipients
The list of delivery status information objects representing each recipient in the DSN message.
Top
Remarks

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).

Examples
The example is available in DeliveryStatusParser topic.
See Also