.NET 的 SMTP 和 IMAP 服务器库

9

本文介绍了.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 服务器库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

The End

相关推荐

C# 中的多播委托奇怪行为?
Multicast delegate weird behavior in C#?(C# 中的多播委托奇怪行为?)...
2023-11-11 C#/.NET开发问题
6

如何将代表存储在列表中
How to store delegates in a List(如何将代表存储在列表中)...
2023-11-11 C#/.NET开发问题
6

代表如何工作(在后台)?
How delegates work (in the background)?(代表如何工作(在后台)?)...
2023-11-11 C#/.NET开发问题
5

Delegate.CreateDelegate() 和泛型:错误绑定到目标方法
Delegate.CreateDelegate() and generics: Error binding to target method(Delegate.CreateDelegate() 和泛型:错误绑定到目标方法)...
2023-11-11 C#/.NET开发问题
14

函数委托与函数
Func Delegate vs Function(函数委托与函数)...
2023-11-11 C#/.NET开发问题
6

具有未知类型的 CreateDelegate
CreateDelegate with unknown types(具有未知类型的 CreateDelegate)...
2023-11-11 C#/.NET开发问题
5