local smtp server to send mail

2019-02-01 22:15发布

i need to demo an application on my laptop running windows 7 enterprise. The application is supposed to send mail. How can i setup a local smtp server to send mail from and be able to recieve it in my outlook on the machine. I need to be able to do this while not connected to the internet for the demo.

标签: smtp
6条回答
爷、活的狠高调
2楼-- · 2019-02-01 22:40

XMail or hMailServer should do the trick.

More details on this previous question.

查看更多
Rolldiameter
3楼-- · 2019-02-01 22:50

Local smtp only: smtp4dev (similar to papercut)
The application catches everything sent to it, but does not send emails over the internet.

查看更多
干净又极端
4楼-- · 2019-02-01 22:54

As for me the best option is https://www.npmjs.com/package/maildev

A painless smtp server running on node. Therefore you need to install node, but it actually send an email to any smtp server.

查看更多
唯我独甜
5楼-- · 2019-02-01 22:58

Papercut is pretty active (last release on Jun 25, 2015):

Ever need to test emails from an application or web site but don't want them accidently being sent or having to deal with the hassle of setting up a test email server? Papercut is a quick email viewer with a built-in SMTP server designed to only receive messages. It doesn't enforce any restrictions how you send your email. It allows you to view the whole email-chilada: body, html, headers, attachment down to the naughty raw bits. It can be set to run on startup and sits quietly minimized in the tray giving you a balloon popup when a new message arrives.

You can also try smtp4dev:

A dummy SMTP server for Windows, Linux, Mac OS-X (and maybe elsewhere where .NET Core is available)

查看更多
别忘想泡老子
6楼-- · 2019-02-01 22:59

You can also (for a demo) user the 'specifiedPickupDirectory' setting to leverage the same code, but drop the email message off to a local folder, alleviating the need for an actual SMTP server, but being able to demonstrate that the email is generated as expected.

MSDN: http://msdn.microsoft.com/en-us/library/ms164241.aspx

查看更多
放荡不羁爱自由
7楼-- · 2019-02-01 23:01

You can send email using Telnet or implement the protocol using socket programming.

Refer to http://www.softwareandfinance.com/Visual_CPP/TelnetEmail.html

查看更多
登录 后发表回答