|0||The message was not delivered to the recipient.|
|1||The message was blocked by the client side.|
|2||An informational notification was issued to the sender.|
|3||Mail transfer software issued a warning while delivering the message.|
|4||The receipt generated after delivering the message.|
|5||You can find the type of the delivery notification message using ResultItem.UserDefined property.|
|6||An unknown notification message.|
Since a delivery status notification (DSN) message may contain delivery reports for multiple recipients of the original e-mail message, the delivery status might be available for each recipient separately.
Process(MailMessage) method returns the collection of RecipientStatus objects in Recipients property. This collection contains delivery statuses for all recipients in the DSN message. To get the e-mail address of the particular recipient, use EmailAddress property of the RecipientStatus object. For autoreply messages, it can be not available and you'll need to use From property.
If, for some reason, you are using DsnRecipient class instead of RecipientStatus, you can use Action property to learn the delivery status. Action property uses values of DsnAction type which provides DSN statuses exactly as they are specified in the DSN attachment of the DSN message. Action property value won't be available in the case if the DSN message does not have a DSN attachment (see DsnAttachment topic for details). Common property is more general. If Action is available, MailBee initializes Common from it. If the message does not have a DSN attachment (and Action is not available), MailBee extracts this information from the message body.