Latest Imap server Library [closed]
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
开发者_运维技巧Closed 8 years ago.
Improve this questionDoes 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...
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/
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.
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
精彩评论