Brendan Tompkins [MVP]

Sponsors

The Lounge

News

Advertisement

Images in this post missing? We recently lost them in a site migration. We're working to restore these as you read this. Should you need an image in an emergency, please contact us at imagehelp@codebetter.com
FreePop3 - Connect and Pop All Messages

I wanted to show some sample code for receiving messages with FreePop3:

// Create the client
Pop3Client freePopClient = new Pop3Client("popserver.yourcompany.com", "user", "pass");

// Pop off all of the messages, this will also connect and disconnect
// the TCP session
Pop3Client.Pop3MessageCollection messages = pop3.PopMessages();
foreach(Pop3Client.Pop3Message message in messages)
{
     
// Do something cool here
}

Could it be any simpler?

-Brendan


Posted 10-28-2004 1:21 PM by Brendan Tompkins

[Advertisement]

Comments

Josh Pollard wrote I Promise I'll Calm Down Soon!
on 10-28-2004 1:23 PM
Pashik wrote re: FreePop3 - Connect and Pop All Messages
on 06-04-2007 9:02 AM

possibly there is error in code.

what is pop3?

Pop3Client.Pop3MessageCollection messages = pop3.PopMessages();

Add a Comment

(required)  
(optional)
(required)  
Remember Me?