Delivery Status Notifications

Hi,


In our FAX application we need to construct DSN messages to return the status for faxes sent from our server.

Can I use the Aspose.Email api to construct a DSN message?

Bill

Hi Bill,


Thank you for posting your inquiry.

Can you please share such a sample file with us so that we can investigate the issue at our end and share our feedback with you? We need to examine it for checking the capability of generating such a message and appreciate your help for creating one such message.

I have attached an NDR in an eml file.

Hi Bill,


In order to reconstruct such a message, please use the BounceResult class to get the details of the issue. Please try the following code sample and share your feedback with us.

Code:

string fileName = “failed1.eml”;
MailMessage mail = MailMessage.Load(fileName);
BounceResult result = mail.CheckBounced();
Console.WriteLine(fileName);
Console.WriteLine("IsBounced : " + result.IsBounced);
Console.WriteLine("Action : " + result.Action);
Console.WriteLine("Recipient : " + result.Recipient);
Console.WriteLine();