Mail.dll is a powerful .NET IMAP component and POP3 component designed for developers who need to receive and process emails in their .NET applications. This comprehensive library includes a robust SMTP component for reliable email sending.

With Mail.dll, you can sign and encrypt emails using the S/MIME standard, ensuring secure communication. The component also supports signature verification and decryption, providing a full suite of tools for handling email security in received messages.

Enhance your .NET applications with Mail.dll for efficient and secure e-mail processing.

The library fully supports async/await API for building scalable and responsive applications.

Written entirely in managed code. Mail.dll only requires the .NET be installed on the machine.

It supports both C# and VB.NET languages. Works with .NET framework 2.0-4.8, .NET Core 2.0+, .NET Standard 2.0+, .NET 5.0/.NET 8.0 and newer including ASP.NET Core and Azure.

Mail.dll features

Clients about Mail.dll

Quick start .NET samples

Receive emails using IMAP in .NET

    using(Imap imap = new Imap())
    {
        imap.ConnectSSL("imap.server.com");
        imap.UseBestLogin("user", "pass");
    
        imap.SelectInbox();

        List<long> uids = imap.Search(
            Flag.Unseen);
        long first = uids[0];
        
        byte[] eml = imap
            .GetMessageByUID(first);
        
        IMail email = new MailBuilder()
            .CreateFromEml(eml);
        
        string subject = email.Subject;
        
        imap.Close();
    }
    

Receive emails using POP3 in .NET

    using(Pop3 pop3 = new Pop3())
    {
        pop3.ConnectSSL("imap.server.com");
        pop3.UseBestLogin("user", "pass");
    
        List<long> uids = pop3.GetAll();
        long first = uids[0];
        
        byte[] eml = pop3
            .GetMessageByUID(first);
        
        IMail email = new MailBuilder()
            .CreateFromEml(eml);
        
        string subject = email.Subject;
        
        pop3.Close();
    }
    
You can find more samples here.

You can find many more samples here.

Our customers

Get Started Today