Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Local SMTP server that can be used for testing and development - won't actually deliver mail [closed]

Tags:

windows-7

smtp

When I'm developing something that sends email, I sometimes don't want to actually send any email, but I do want to see what email would be sent using live data. However, there's not an easy way to do this, as I haven't found a local SMTP server that will receive my mail and then just hold it for me in a queue so I can view it.

In Windows XP and Vista, I used the locally installed SMTP server and just set it to deliver to a smart host that didn't exist - the mail just sat in the "inetput\mailroot\queue" folder forever, and I could view it whenever I wanted to. However, in Windows 7, there's no longer an integrated SMTP server, and though I've found a number of SMTP servers that can be installed locally and relay mail for me, I want one that won't relay mail.

Does anybody have suggestions on how to accomplish this functionality? I've considered writing my own, but implementing the whole RFC spec seemed like a big task if there's something out there. Maybe there's an open-source project that I could modify just to write the mail to disk instead of delivering it.

like image 276
SqlRyan Avatar asked Nov 14 '10 14:11

SqlRyan


People also ask

Can a local SMTP server send email?

It cannot send non-personalized emails. It can be blocked by email filters because emails are not sent from a regular SMTP server.

Why is SMTP not sending emails?

Check whether there is network access from CSO to the SMTP server. Check whether the firewall is blocking SMTP traffic to SMTP server or whether the ports are blocked. If the server settings and authentication settings are correct, check whether the firewall is blocking port 587 and 465 and SMTP traffic.


2 Answers

Papercut is likely what you want, though it is only compatible with Windows.

like image 149
driis Avatar answered Oct 24 '22 20:10

driis


Another local test SMTP server application: https://nilhcem.github.io/FakeSMTP/

like image 25
LM.Croisez Avatar answered Oct 24 '22 20:10

LM.Croisez