SMTP and IMAP server library for .NET(.NET 的 SMTP 和 IMAP 服务器库)
问题描述
有没有人知道一个好的 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 服务器库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:.NET 的 SMTP 和 IMAP 服务器库


- 带有服务/守护程序应用程序的 Microsoft Graph CSharp SDK 和 OneDrive for Business - 配额方面返回 null 2022-01-01
- C# 中多线程网络服务器的模式 2022-01-01
- 在哪里可以找到使用中的C#/XML文档注释的好例子? 2022-01-01
- 良好实践:如何重用 .csproj 和 .sln 文件来为 CI 创建 2022-01-01
- C#MongoDB使用Builders查找派生对象 2022-09-04
- WebMatrix WebSecurity PasswordSalt 2022-01-01
- MoreLinq maxBy vs LINQ max + where 2022-01-01
- Web Api 中的 Swagger .netcore 3.1,使用 swagger UI 设置日期时间格式 2022-01-01
- 输入按键事件处理程序 2022-01-01
- 如何用自己压缩一个 IEnumerable 2022-01-01