Last active
December 17, 2015 19:09
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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