简体   繁体   English

通过C#在Windows 2012中使用SMTP服务器

[英]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,尽管有很多免费的服务器( XMailServerMailEnable或重量较轻的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.

相关问题 使用C#获取SMTP服务器证书 - Use C# to get an SMTP server certificate Windows Server 2012中的C#动态COM - C# Dynamic COM in Windows Server 2012 如何将 C# 控制台应用程序设置为使用默认控制台设置 (Windows Server 2012)? - How to set C# Console Application to use default console settings (Windows Server 2012)? 在Windows Server 2012上将字符串从C DLL返回到C#DLL时出现HTTP状态502错误 - HTTP Status 502 error when returning string from C DLL to C# DLL on Windows Server 2012 如何使用C#中的ClientAssertionCertificate从ADFS(Windows Server 2012R2)获取JWT - How to obtain a JWT from ADFS (Windows server 2012R2) using a ClientAssertionCertificate in C# Windows Server 2012 - 从 C# 运行 powershell 脚本时拒绝访问注册表 - Windows Server 2012 - Access to registry denied when running powershell scripts from C# 无法导入具有私钥的证书pfx从Windows Server 2012上的.net c#3.5存储 - Cannot import certificate pfx with private key to store from .net c# 3.5 on windows server 2012 C#无法从Windows Server 2012 64位上的Wow6432Node读取注册表值 - C# not reading registry values from Wow6432Node on Windows Server 2012 64-bit C#如何检查要使用的smtp服务器 - C# how to check what smtp server to use SMTP代码在本地Windows中发送电子邮件,但不在Windows Server 2012中发送电子邮件 - SMTP Code Is Sending Email In Local Windows But Not In Windows Server 2012
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM