Home   Buy Now   Products   Downloads   Support   Resellers   Jobs   Contact   Site Map   Search
Home   Buy Now   Download   Support  
Email Component, SMTP Component, POP3 Component, IMAP Component, bulk mail

Home
Purchase
Upgrade
 
Products
Downloads
 
Support
 Samples
 KB
 Forum
 
Newsletter
 
Customers
 Current List
 Comments
 
Resellers
Jobs
Contact Us
EasyMail.Net Verify Sample Code

Sample Code

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.

C#   VB.Net   Delphi   Other Samples    
Sample Notes
This sample downloads the first message in a POP3 mailbox, parses it with the Parse component and then displays the subject.

// create the POP3 object and a memory stream  
// object to receive the data downloaded from
// the POP3 server.  To save to a file
// use a FileStream object instead.
POP3 pop = new POP3(); 
MemoryStream memoryStream = new MemoryStream(); 

// connect to a POP3 server and login to a mailbox
pop.Connect("mail.yourdomain.com");
pop.Login("mailbox", "password", AuthMode.Plain); 

// download the first message in the mailbox
pop.DownloadMessage(1,memoryStream);

Copy and paste this code to get a jump start!

 



 

 Product Home
 Features
 What's New in 3.0
 Features Added in 2.x
 System.Web.Mail Comparison
 SMTP Component
 POP3 Component
 Detailed Features
 Sample Code
 IMAP4 Component
 Parse Component
 SSL Plug-in
 S/MIME Plug-in
 Documentation
 Pricing / Licensing

©2010Quiksoft Corporation. All rights reserved. Terms of Use, Privacy Statement, Trademarks