MailBee.NET AntiSpam Component

MailBee.NET AntiSpam Component

Detect spam e-mails with
a self-learning Bayesian filter
MailBee.NET Objects bundle includes SMTP, POP3, IMAP, EWS, Security, Antispam, Outlook Converter, Address Validator, PDF components and also BounceMail, HTML, MIME, ICalVCard components which are a free functionality.

MailBee.NET AntiSpam is an easy-to-use .NET component which allows applications to detect spam messages with self-learning and very efficient Bayesian filter. It also provides DNS RBL filtering.

Bayesian filter does not depend on any external resources. You teach it with some amount of spam and non-spam e-mails, and the component can then use this knowledge to recognize which further e-mails you consider spam or not.

The component deals with regular MIME e-mails in the form of MailMessage objects which can be delivered to your application by POP3 or IMAP components or read from another source like a file or stream.

Written in 100% managed code, MailBee.NET AntiSpam only requires the .NET framework be installed on the computer.

Visual Studio


MailBee.NET AntiSpam 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, both 32-bit and 64-bit.

MailBee.NET also supports .NET Core 1.0/2.0/3.0/3.1, .NET 5.0/.NET 8.0 and newer including ASP.NET Core and Xamarin, UWP (Universal Windows), Azure.

With MailBee.NET Objects license, you also get these MailBee.NET components for free: BounceMail, HTML, MIME, ICalVCard.

Top 100 publisher by ComponentSource

Over the years, MailBee.NET Objects has been among bestsellers on ComponentSource, the world's leading online shop of developer tools.

Current version: 12.4 Last update: 06 December 2023

BayesFilter Object

  • A method to return spam score of an e-mail
  • A method to train the spam database using samples of proven spam and non-spam e-mails
  • Methods to save/load spam database into/from files
  • Auto-learning ability (training during scoring e-mails)
  • Integrated with other components of MailBee.NET Objects suite

BayesFilter Object reference...

What's new

Version 12.4

  • .NET 8.0 officially supported

See Version History for details

Version 12.0

  • .NET Core 2.0 / .NET Standard 2.0 edition revised and improved, including better support of .NET Core 2.1 and 2.2.
  • .NET Standard 2.0 support in UWP. UWP apps targeting Windows 10 Fall Creators Update and newer can use the fully-functional .NET Standard 2.0 edition of MailBee.NET Objects.

Version 11.2

  • .NET Core 2.0 edition.
  • UWP edition can now be used in Release builds.

Version 11.1

  • New RblFilter class to perform spam filtering using DNS RBLs.

Clients Say:

"I've been looking at the MailBee.NET application and love it." Matt Yeager
"Thanks again for your help. I like your products..." Ron Hill
"By the way I love your software. Great work thank you." Dennis Drogemuller