[英]Use SMTP Server in Windows 2012 from C#
I need a SMTP server for Windows Server 2012 so that I will be able to intercept incoming emails from my C# application and display it to my clients via an ASP.NET application. 我需要用于Windows Server 2012的SMTP服务器,以便能够拦截来自C#应用程序的传入电子邮件,并通过ASP.NET应用程序将其显示给客户端。 Sorry if this would look like a trivial question but i cant figure out where should i start from.
对不起,如果这看起来像一个琐碎的问题,但是我不知道该从哪里开始。
The most obvious Windows SMTP server is Exchange, although there are plenty of free ones ( XMailServer , MailEnable or the lighter-weight Papercut , which might serve your purpose) - I've not used anything other than Exchange, but a Google search will find you a tonne of them. 最明显的Windows SMTP服务器是Exchange,尽管有很多免费的服务器( XMailServer , MailEnable或重量较轻的Papercut ,它们可能会满足您的目的)-除了Exchange以外,我没有使用其他任何东西,但是Google搜索会发现你一吨。
Is this just for sending messages from client to server, though? 但是,这仅是用于从客户端向服务器发送消息吗? Unless there's some reason you need to have these messages as emails, it seems unlikely the overhead of setting up an entire email system, sending an email and then extracting the message and putting it into a web page is the best solution to your problem - have you considered a lighter-weight client-server messaging system, such as DotNetMQ or simply sending your own messages directly through TCP sockets?
除非出于某些原因需要将这些消息作为电子邮件发送,否则设置整个电子邮件系统,发送电子邮件然后提取消息并将其放入网页的开销似乎不太可能是解决问题的最佳方法-您考虑使用轻量级的客户端服务器消息传递系统(例如DotNetMQ)还是直接通过TCP套接字直接发送自己的消息?
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.