I am trying to find library which provides embedded lightweight SMTP server for mail receiving with .NET API. Features I am looking for: Events (e.g. OnReceived), Basic configuration (port, domain), MIME parsing (for easy subject or message body retreival). The only viable solution I have found is Rnwood.SmtpServer which does not provide MIME parsing and randomly crashes on certain emails. I have also came across multiple solutions like Papercut and netDumbster which are for testing purposes thus not having everything I need. Is there any solution I have missed?
Asked
Active
Viewed 2,864 times
1
-
Are you looking to send (SMTP) or receive (POP3) emails? – David Apr 07 '13 at 00:11
-
I am looking for receiving email sent through SMTP. – Vasaka Apr 07 '13 at 00:14
-
Does this help? http://stackoverflow.com/questions/236381/integrating-pop3-client-functionality-into-a-c-sharp-application – David Apr 07 '13 at 00:17
-
Maybe I can use MIME parser from OpenPop.NET but that is not what I am looking for. I want SMTP server listening port 25 and receiving emails embedded in my application. – Vasaka Apr 07 '13 at 00:19
2 Answers
1
I ended up using netDumbster with slightly modified source code with added event support. It is available here https://github.com/Inkp/netDumbster. It has been working without any significant problems so far. It still lacks full MIME-parser, though.

Vasaka
- 579
- 6
- 17
-
this is a fake smtp server, it can not really post email, how can you do? – sendreams Jul 02 '15 at 06:18
-
-1
Rnwood.SmtpServer + SharpMimeTools.
Check out the Rnwood.Smtp4Dev project to see how to extract all the stuff using SharpMimeTools library.

Stephen Drew
- 1,415
- 19
- 31