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.
问题:
回答1:
XMail or hMailServer should do the trick.
More details on this previous question.
回答2:
Local smtp only: smtp4dev (similar to papercut)
The application catches everything sent to it, but does not send emails over the internet.
回答3:
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)
回答4:
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
回答5:
You can send email using Telnet or implement the protocol using socket programming.
Refer to http://www.softwareandfinance.com/Visual_CPP/TelnetEmail.html
回答6:
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.