Enhance your .NET applications in C# and VB.NET with the powerful IMAP .NET client component integrated into cutting-edge Mail.dll email toolkit.

Seamlessly receive and process emails using the IMAP protocol, with support for signature verification and decryption. Our IMAP client is crafted entirely in managed code, ensuring optimal performance.

Compatible with a wide range of frameworks, including .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. Upgrade your email functionality with ease and efficiency using Mail.dll's IMAP client component.

IMAP client features

Clients about IMAP in 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 many more .NET IMAP client samples here.

Our customers

Start using IMAP in .NET today