Latest Imap Server Library

Does anyone know a good and latest imap server library in C #? I already used the lumisoft imap library. But, since gmail changed its settings, I can no longer use it. Need the latest imap server library ...

+5
source share
3 answers

I found the latest encoding of the imap server in the following link .. Some of the functions have been changed .. It works .. Thanks to everyone

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

+5
source

Try the Mail.dll email component , it is very easy to use.

SSL, MIME ( ), S/MIME ( ), IMAP, POP3 SMTP:

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);
}

, , .

-1

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

The following code shows how to download a list of messages from a 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

-1
source

All Articles