简体   繁体   中英

C# embedded smtp server

I am trying to find library which provides embedded lightweight SMTP server for mail receiving with .NET API. Features I am looking for: Events (eg 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?

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.

Rnwood.SmtpServer + SharpMimeTools.

Check out the Rnwood.Smtp4Dev project to see how to extract all the stuff using SharpMimeTools library.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM