Check out the sample code below to see just how easy it is to use the POP3
component of EasyMail .Net Edition. But don't let the ease of use fool
you; the POP3component is very powerful and packed with features.
The sample code on this page demonstrates the most basic features of the
POP3 component. Be sure to click on the "Other Samples" tab to find
more advanced samples.
| Sample Notes | | This sample downloads the first message in a POP3 mailbox, parses it with the Parse component and then displays the subject. |
POP3 pop = new POP3(); MemoryStream memoryStream = new MemoryStream();
pop.Connect("mail.yourdomain.com"); pop.Login("mailbox", "password", AuthMode.Plain);
pop.DownloadMessage(1,memoryStream);
|