问题描述
有没有人知道一个好的 C# SMTP/IMAP 服务器库?
Does anyone know a good SMTP/IMAP server library for C#?
我只发现了一些长期废弃的项目.
I only found some long abandoned projects.
仅服务器端库,请不要再发关于客户端库的帖子.
Only SERVER SIDE libraries, please no more posts about client libs.
谢谢,芬恩
推荐答案
我正在做一个项目,我需要在本地网络上通过 SMTP 接收邮件(旧应用程序正在发送邮件以用于集成目的).最初,我打算在 IIS 中使用 SMTP 服务器并使用事件接收器,但这似乎有点笨拙.我目前正在评估以下 3 个候选库:
I am working on a project where I need to receive a mail via SMTP on the local network (a legacy application is sending a mail for integration purposes). Originally, I was going to use the SMTP server in IIS and use event sinks but that seems a little heavy-handed. I am currently evaluating the following 3 candidate libraries:
nDumbster:开源但不是完全实现的服务器.最初用于单元测试.它将邮件解析为对象以便于检查.我必须修改它以在收到消息时引发事件.
nDumbster: Open source but not a fully-implemented server. Originally used for unit tests. It parses the mail to an object for easy inspection. I had to revise it to raise an event when a message was received.
SmtpServer:使用 .NET TPL 并实现 STARTTLS 的现代设计.源代码似乎并不容易获得.收到消息时提供一些挂钩,但似乎将消息内容作为 blob 传递给您.(我没有对此进行测试,因为它需要 .net 4.5)
SmtpServer: Modern design using .NET TPL and Implements STARTTLS. Source code does not seem readily available. Provides a few hooks when message is received but appears to hand you the message contents as a blob. (I didn't get to test this as it requires .net 4.5)
Rnwood.SmtpServer:看起来功能齐全,虽然缺少文档,但源代码可用.
Rnwood.SmtpServer: Looks to be full-featured and source code is available although documentation is lacking.
这篇关于.NET 的 SMTP 和 IMAP 服务器库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!