tags:

views:

448

answers:

4

I am writing a small application that will receive messages to process over smtp port 25.

I am looking for an .NET assembly that I can incorporate that will listen to port 25 and talk SMTP. I invision that when a message arrives some event is triggered where I can read the message and process it.

Esstentilly I need to "Act" like a SMTP server but apart from receiving the message I don't need any more functionaly that you would find in a full blown SMTP server.

Let me know if you need more clarification.

+2  A: 

Have you looked at this: CodeProject: SMTP and POP3 Mail Server?

J D OConal
I was looking for somthing a bit more "lightweight" 1. Listing on Port 252. Talk RFC821 (SMTP)3. When a message is received, fire an event and let the event handler process the message
Norge
Ah, I see. I wasn't able to find anything that light weight, but it wouldn't be too difficult to write it from scratch (I'm sure that's not the answer you're looking for).
J D OConal
Thanks anyway. I will see if anyone else responds
Norge
Implementing RFC821 is never light-weight. And if you implement less than RFC821 (e.g. a fake SMTP daemon that only understands the most basic "receive mail for user" scenario) you should not expose this SMTP daemon on the public Internet.
bzlm
A: 

This sounds like what you want http://www.ericdaugherty.com/dev/cses/

Robert Wood
A: 

Check out this answer.

http://stackoverflow.com/questions/550887/testing-smtp-with-net

You have answers for using local mock smtp servers or... a config setting that will make you app create messages in a Pickup folder of your choice.

argatxa