1 May 2017

Pick up Emails from IMAP

            
using (ImapClient client = new ImapClient("server.name", 993, "account.name", "account.passwd", AuthMethod.Login, true))
            {

                IEnumerable<uint> uids = client.Search(SearchCondition.SentSince(DateTime.Now.AddDays(-7)));
                IEnumerable<mailmessage> messages = client.GetMessages(uids, FetchOptions.HeadersOnly);
            }

No comments:

Post a Comment

Comments are very welcome unless you're a spammer, in which case you should probably kill yourself.

If I helped you out today, you can buy me a beer below. Cheers!