This component is a free functionality within MailBee.NET Objects. This means you can use it with any licensed component of MailBee.NET Objects family at no additional cost. For instance, you can receive an e-mail via POP3 or IMAP and then let BounceMail decide if that e-mail is a bounced message and find out whatever the failed e-mail address is:
DeliveryStatusParser parser = new DeliveryStatusParser (
@"C:\Program Files\MailBee.NET Objects\BounceDatabase\all.xml", true);
// Download last e-mail from inbox (assuming pop is Pop3 instance)
MailMessage msg = pop.DownloadEntireMessage(pop.InboxMessageCount);
// Check if the e-mail is a bounced message and extract its details
Result result = parser.Process(msg);
if (result != null) {
foreach (RecipientStatus status in result.Recipients)
{
Console.WriteLine("email=" + status.EmailAddress + ", " +
"status.IsBounced=" + status.IsBounced.ToString());
}
}
Dim parser As DeliveryStatusParser = New DeliveryStatusParser( _
"C:\Program Files\MailBee.NET Objects\BounceDatabase\all.xml", True)
' Download last e-mail from inbox (assuming pop is Pop3 instance)
Dim msg As MailMessage = pop.DownloadEntireMessage(pop.InboxMessageCount)
' Check if the e-mail is a bounced message and extract its details
Dim result As Result = parser.Process(msg)
If Not result Is Nothing Then
Dim status As RecipientStatus
For Each status In result.Recipients
Console.WriteLine("email=" + status.EmailAddress + ", " & _
"status.IsBounced=" + status.IsBounced.ToString())
Next
End If
The code above assumes that MailBee, MailBee.Mime, MailBee.BounceMail, and MailBee.Pop3Mail namespaces are declared ("using" in C#, "Imports" in VB) and 'pop' variable denotes MailBee.Pop3Mail.Pop3 instance object in authenticated state.
Written in 100% managed code, MailBee.NET BounceMail only requires the .NET framework to be installed on the computer.
MailBee.NET BounceMail can be used in any .NET language including C# and VB.NET. Supported .NET frameworks include .NET 2.0/3.0/3.5/4.0/4.5/4.6/4.7/4.8/5.0/6.0/8.0 and .NET Core, both 32-bit and 64-bit.