Mail.dll - .NET email component (IMAP, POP3)
IMAP component and POP3 component that allows you to receive emails and process email messages in .NET applications. Includes SMTP component for sending, along with email signing, encrypting and signature verification. Written entirely in managed code. Works with .NET 2.0, 3.0, 3.5 and 4.0 including Mono. Dedicated Mail For Windows Store version is also available.
Features
- UNIQUE IMAP component, POP3 component, SMTP component in a single package!
- UNIQUE Best MIME parser on the market
- Fully compatible with Microsoft Exchange, Office 365, Gmail, Dovecot, hMailServer and others
- SSL and TLS support
- Automatic email attachments encoding/decoding
- S/MIME: sending signed emails, signed emails validation, encryption and decryption
- UNIQUE DKIM emails validation and signing
- UNIQUE iCalendar appointments and vCard support
- TNEF support (decodes winmail.dat files)
- Create attachments from a file or byte array
- Secure login (APOP, CRAM-MD5, DIGEST-MD5 support)
- Proxy support: HTTP and Socks proxy (Socks5, Socks4, Socks4a)
- IMAP IDLE: push email support for IMAP servers
- UNIQUE Template engine support
- Support for displaying emails in Windows applications
- UNIQUE OAuth 2.0 for web sites (ASP.NET) and OAuth 2.0 for installed applications support
- UNIQUE 2-legged OAuth and 3-legged OAuth support (including Gmail API helpers)
- UNIQUE IMAP protocol Gmail extensions
- Bounce handling
- Bayesian spam filter (over 99.5% accuracy)
- UNIQUE Build-in HTML to plain text converter
What folks are saying about Mail.dll
Just bought a license. Mail.dll is an absolutely fantastic email library. I would recommend it to anyone who needs to send or receive emails from .NET applications
I like your product. I should also recognize the excellent technical support you provide; my questions were always promptly answered, and the answers were very helpful every time.
I’ve installed 4 or so other email components from other vendors, played with each of them to see how easy they are to work with, and yours was up and running quicker, easier, and better than all the others.
Quick start samples
-
Receive emails from IMAP server using C#
using(Imap imap = new Imap()) { imap.Connect("imap.server.com"); // or ConnectSSL for SSL imap.UseBestLogin("user", "password"); imap.SelectInbox(); List<long> uids = imap.Search(Flag.Unseen); foreach (long uid in uids) { IMail email = new MailBuilder() .CreateFromEml(imap.GetMessageByUID(uid)); Console.WriteLine(email.Subject); } imap.Close(); } -
Receive emails from POP3 server using C#
-
Send email using SMTP server using C#
-
Receive emails from IMAP server using VB.NET
Using imap As New Imap imap.Connect("imap.server.com") ' or ConnectSSL for SSL imap.UseBestLogin("user", "password") imap.SelectInbox() Dim uidList As List(Of Long) = imap.Search(Flag.Unseen) For Each uid As Long In uidList Dim email As IMail = New MailBuilder() _ .CreateFromEml(imap.GetMessageByUID(uid)) Console.WriteLine(email.Subject) Next imap.Close() End Using -
Receive emails from POP3 server using VB.NET
-
Send email using SMTP server using VB.NET






