创建 SMTP 服务器 c#

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/11457722/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-09 17:55:28  来源:igfitidea点击:

Creating an SMTP Server c#

c#smtp

提问by Boardy

I am currently working on an email server that when it receives an email it will it add it to a queue, and if it fails to be sent it can then get retried and also based on what it receives sends an auto reply message.

我目前正在开发一个电子邮件服务器,当它收到一封电子邮件时,它会将其添加到队列中,如果发送失败,则可以重试,并根据收到的内容发送自动回复消息。

What I am looking at being able to do, is the email server can also be an smtp server, so the user could configure, let's say php or another email client use my email server smtp and it can receive the message and then process it.

我正在考虑能够做的是,电子邮件服务器也可以是 smtp 服务器,因此用户可以配置,假设 php 或其他电子邮件客户端使用我的电子邮件服务器 smtp,它可以接收消息然后处理它。

Is this something that is possible and how can I get it started, haven't found that much help on Google, it needs to work with mono (linux) and normal .net (Windows).

这是可能的,我该如何开始,在谷歌上没有找到太多帮助,它需要使用单声道(linux)和普通的 .net(Windows)。

Thanks for any help you can provide

感谢您的任何帮助,您可以提供

采纳答案by Raman Zhylich

Here are examples of SMTP server implementation in C#:
Create a simple SMTP server in C#
SMTP and POP3 Mail Server

以下是 C# 中 SMTP 服务器实现的示例:
Create a simple SMTP server in C#
SMTP and POP3 Mail Server