DotNetLibs Mail library for C# and VB.NET developers provides all you need for sending, receiving, encrypting, decrypting, signing, verifying, loading, saving and processing e-mails messages. Written entirely in managed code and works with Mono and .NET 2.0, 3.0, 3.5, 4.0 and 4.5 including Mono. Features
Quick start samplesList messages
using (var imap = new DotNetLibs.Net.Imap()) { // Connect to the Gmail IMAP server imap.Connect("imap.gmail.com", SslMode.Implicit); // Authenticate the user imap.Login(username, password); // Get list of new messages in Inbox imap.SelectFolder("Inbox"); var list = imap.Search(ImapSearchParameter.Unread); // print subjects of those messages foreach (var info in list) { Console.WriteLine(info.Subject); } }
|