Skip to content

Instantly share code, notes, and snippets.

@nootanghimire
Last active December 17, 2015 19:09
Show Gist options
  • Save nootanghimire/5658302 to your computer and use it in GitHub Desktop.
Save nootanghimire/5658302 to your computer and use it in GitHub Desktop.
Using Pop3 client to recieve emails. Uses MAil.dll | Must Import: >> Limilabs.Mail , Limilabs.Client.POP3
using (Pop3 client = new Pop3())
{
client.ConnectSSL("pop3.live.com");
client.UseBestLogin("username@something.com", "passwordhere");
List<string> uids = client.GetAll();
foreach (string uid in uids)
{
string email = client.GetMessageByUID(uid);
IMail em = new MailBuilder()
.CreateFromEml(email);
Console.WriteLine(em.Subject);
}
Console.ReadLine();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment