tags:

views:

296

answers:

4

Hi Does anyone knows good and latest imap server library in C#? Already I used lumisoft imap library. But, as the gmail has changed it's settings, I cannot use it anymore. Need latest imap server library...

+2  A: 

I found the latest imap server coding in the following link.. Some of the functions has been changed.. It is working.. Thank you everyone

http://www.lumisoft.ee/lsWWW/Download/Downloads/Net/

Nila
+1  A: 

Try Mail.dll email component, it's very easy to use.

It supports SSL, MIME (downloads attachments), S/MIME (secure signatures), includes IMAP, POP3 and SMTP clients:

using(Imap imap = new Imap())
{
    imap.ConnectSSL("imapServer");
    imap.Login("user", "password");

    imap.SelectInbox();
    List<long> uids = imap.SearchFlag(Flag.Unseen);

    foreach (long uid in uids)
    {
        string eml = imap.GetMessageByUID(uid);
        IMail email = new MailBuilder()
            .CreateFromEml(eml);

        Console.WriteLine(email.Subject);
        Console.WriteLine(email.TextDataString);
    }
    imap.Close(true);
}

Please note that this is a commercial product that I've created.

Pawel Lesnikowski
Super easy to use compared to others I was struggling with; a free download lets you try it to see if it's easy or not. @Pawel, I will be recommending my client buys the library.
Kate Gregory
+3  A: 

Hello, there are one more IMAP library written in C#, callsed ImapX, absolutely free for commercial non-commercial usage. You can read more about here : http://hellowebapps.com/products/imapx/

Mehal
A: 

You may want to try our Rebex Mail. It includes SMTP/SSL, IMAP/SSL, SMTP/SSL, S/MIME.

Following code shows how to download the message list from Gmail IMAP server:

// connect and log in
Imap imap = new Imap();
imap.Connect("imap.gmail.com", 993, null, ImapSecurity.Implicit);
imap.Login(username, password);

// process messagess...
ImapMessageCollection messages =
    client.GetMessageList(ImapListFields.Envelope);

// display info about each message 
Console.WriteLine("UID | From | To | Subject");
foreach (ImapMessageInfo message in messages)
{
    Console.WriteLine(
        "{0} | {1} | {2} | {3}",
        message.UniqueId,
        message.From,
        message.To,
        message.Subject);
}

// logout and disconnect
imap.Disconnect();

You can download it from rebex.net/secure-mail.net/download.aspx

Martin Vobr