views:

295

answers:

3

There are tons of Google examples on making a POP3 client in .net but I want to make a simple custom POP3 service/server to retrieve email for the user from a custom database. Are there any components or examples of that?

A: 

I created this mock smtp server a long time ago. You can use that code to start with and some "real logic" to it.

slf
Additionally, this RFC should be good for reference: http://www.ietf.org/rfc/rfc821.txt
schnaader
That looks excellent, thank you.
MyNameIsLoki
A: 

There's a Delphi example here which might get you started. It shouldn't be too hard to pull out the basic parts of the POP3 spec and write to those, either - relevant information here for Telnet commands.

As well, an RFC here describing the protocol in more detail.

Andy Mikula
+4  A: 

Here's an open source .NET POP3 server. And since you mentioned you're new to sockets programming, here's a tutorial for that, too.

Jon B