Rebex Mail Pack
IMAP, POP3, SMTP, EWS, MSG, MS Graph, MIME, S/MIME libraries for .NET
Download 30-day free trial Buy from $299More .NET libraries
-
Rebex File Transfer Pack
FTP and SFTP together
-
Rebex Total Pack
All Rebex .NET libraries together
.NET libraries
EWS
Provides client-side API for accessing Microsoft Exchange servers using Exchange Web Services (EWS).
Graph
Provides client-side API for accessing Exchange Online using MS Graph API.
IMAP
.NET library for communication with IMAP servers. Makes it possible to receive, list, search and remove e-mail messages.
MSG
.NET library for reading, processing and writing Microsoft Outlook .MSG e-mail message files.
POP3
.NET library for communication with POP3 servers. Makes it possible to receive, list and remove e-mail messages.
SMTP
.NET library for sending e-mails using SMTP servers.
Supported formats and protocols
Client protocols
Read/write formats
Read only formats
Main features
SMTP and PickupDirectory for sending emails
IMAP for advanced mailbox access
EWS for sending and receiving emails using Exchange
Access Microsoft 365 (Exchange Online) using Graph API
POP3 for email retrieval
Outlook MSG file reading and writing
Manipulate subject, body, recipients and attachments of Outlook .MSG messages.
Or list and manipulate MAPI properties of .MSG messages directly.
Signed and encrypted emails (S/MIME)
RSA/OAEP and RSA/PSS on all platforms
Easy-to-use API
Connect, log in, search for new messages, download messages, disconnect. Send email with attachments. It's easy to start developing with our library. Simple code for common use cases.
Lots of sample code.
Trusted by thousands of .NET developers worldwide
Thousands of developers chose Rebex Mail Pack (formerly Secure Mail) for adding SMTP, IMAP, POP3, EWS, Graph, MIME or S/MIME capabilities to their applications.
Up-to-date TLS support
Rebex Mail Pack supports modern TLS versions on all mainstream platforms. This ensures that your emails are transfered securely and reliably. Rebex Mail Pack supports both implicit or explicit TLS/SSL and provides a rich set of security features. You'll find APIs for TLS/SSL security, X.509 certificates, and more.
- TLS 1.3 on mainstream platforms including .NET 3.5-4.8.1 on Windows 7 (or Windows XP SP3 with plugins)
- TLS 1.2, 1.1, 1.0 on all platforms (including .NET Compact Framework 3.5/3.9)
- Elliptic Curve DSA and Elliptic Curve Diffie-Hellman ciphers (requires a plugin on some platforms)
- AES/GCM ciphers
- Elliptic Curve DSA and Elliptic Curve Diffie-Hellman ciphers
(requires plugin on some platforms) - SHA-2 certificates
- SHA-2 hashing algorithms
- Server Name Indication (SNI) extension
- Renegotiation Indication extension
- Support for legacy SSL 3.0 protocol
Many, many more time-tested features
Rebex Mail Pack is a mature and stable library maintained since 2006. We have been adding new features year after year, inspired by user feedback. For example:
- Task-based Asynchronous API (.NET 4 or later)
- Automated (or custom) certificate validation
- Sending raw POP3/SMTP/IMAP commands
- Sending email on behalf of another user
- Logging all communication with the server
- Ability to use Mail Pack in SSIS, SQL CLR and PowerShell
- FIPS 140-2 compliant mode
Platforms
.NET
.NET Framework
.NET Core
Mono
Xamarin.iOS
Xamarin.Android
Legacy platforms
(not included in standard product packages - see more)
.NET Compact Framework
.NET Framework
Featured samples
-
WinForms IMAP client - mailbox browser
Allows you to browse, view and manage mail messages in a remote IMAP mailbox, without actually downloading them. Demonstrates how to connect to IMAP server, download emails, read its content, work with attachments. -
MIME explorer
Views contents of structured MIME files (mail message, .EML or .MHT file). -
WinForms Exchange Client - EWS mailbox browser
Allows you to browse, view and manage mail messages in a remote Microsoft Exchange mailbox, without actually downloading them. Demonstrates how to connect and authenticate to Exchange server using Exchange Web Services (EWS), browse folders, download and delete emails, read email's content, work with attachments. -
WinForm mail sender application
Write an e-mail, add an attachment and send it, either synchronously or in the background, with or without progress bar dialog.
Satisfied clients
With Rebex IMAP library the number of support calls regarding IMAP protocol problems decreased to almost zero. We are very happy with Rebex Secure Mail (now "Mail Pack") and can warmly recommend it to anybody.
Stefan Schultze
My team has been using Rebex Secure Mail for .NET (now "Mail Pack") for two years and it is really solid. Our service (http://nutshellmail.com/) pulls down millions of POP3 and IMAP messages across all major ISPs on a daily basis. Rebex successfully parses the headers of all these messages. We also use Rebex for our outbound SMTP needs.
We have hit some obscure problems in the past (i.e. GoDaddy's POP3 servers not fully complying with RFC1939); Rebex support was extremely responsive and quickly provided us with a patch.
daviddlyman
I decided to give Rebex.Mail a try and I was very satisfied with the results! Not only is the standard fully and properly respected, it's also significantly faster. It only took half a day to migrate my existing code as the API is very similar to .NET's built-in classes.
Dominic St-Jacques