POP3 class if anyone wants it (C#)

Status
Not open for further replies.

TEBot

Member
Original poster
member
Joined
Feb 24, 2011
Posts
124
Reaction score
21
Points
15
Location
Auckland, NZ
Website
www.traffic-exchange-bot.com
There are two classes; POP3 and EmailMessage. The POP3 class is used to retreive emails from a POP3 (incoming) mail server. The EmailMessage class is used to handle, save and open email messages.

The POP3 class has two events MessageRetrieved and CheckEmailCompleted. The MessageRetrieved event exposes an EmailMessage object as each message is retrieved, so you can handle the messages as they are retrieved.

It works for both SSL and non-SSL mail servers, I've tested it with gmail and it works very well, however I don't have any non-SSL email accounts so I can't test that part but it should work ok.

I'm posting the source code so you can modify it, learn from it and use it in your bots. You'll have to unzip it though as it was to big to upload as is.

If you have any questions or problems, PM me or reply here, I'm happy to help. Oh and I've only done a C# version, I don't know VB.
 

Attachments

  • POP.zip
    3.2 KB · Views: 28
Status
Not open for further replies.