为 windows 开发 smtp 服务器 [英] development smtp server for windows

查看:70
本文介绍了为 windows 开发 smtp 服务器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在寻找一个免费的测试 smptp 服务器,它可以将电子邮件保存到文件中,用于我的开发测试.由于我的开发环境是 windows,我更喜欢在 windows 上运行测试电子邮件服务器,但我可以考虑安装任何其他基于 linux 的替代方案.

I am looking for a free test smptp server which can save emails in to files for my development tests. Since my development environment is windows I prefer test email server to run on windows but I can consider to install any other linux based alternatives.

推荐答案

有几个:

  • SMTP Impostor (formerly Antix SMTP Server), NuGet package - looks very good
  • Dumbster - fake SMTP server under Apache license

或者您也可以在您的 web.config 中进行设置,以便将电子邮件存储在文件系统中(silky"在代码中提出的配置方式):

Or you can also set it up in your web.config to just store the e-mails in the file system (the config way of what "silky" has proposed in code):

<system.net>  
   <mailSettings>  
      <smtp deliveryMethod="SpecifiedPickupDirectory">  
         <specifiedPickupDirectory 
             pickupDirectoryLocation="c:\temp\mails\"/>  
      </smtp>  
   </mailSettings>  
</system.net>  

马克

这篇关于为 windows 开发 smtp 服务器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆