CommonType Enumeration |
Namespace: MailBee.BounceMail
Member name | Value | Description | |
---|---|---|---|
Undeliverable | 0 | The message was not delivered to the recipient. | |
Blocked | 1 | The message was blocked by the client side. | |
Information | 2 | An informational notification was issued to the sender. | |
Warning | 3 | Mail transfer software issued a warning while delivering the message. | |
Receipt | 4 | The receipt generated after delivering the message. | |
UserDefined | 5 | You can find the type of the delivery notification message using ResultItem.UserDefined property. | |
Unknown | 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.
To determine if an e-mail is a bounce (non-delivery report) for the given recipient, use Common or IsBounced properties if you have RecipientStatus object for that recipient.
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.