I always feel bad when I blog something I've tweeted about, but then I remind myself that some folks have (wisely) avoided the trap that is Twitter addiction or may simply have missed it. Earlier this week I was doing some work for a client using Lucee (I'm trying to ween myself off ACF completely) and ran into an issue trying to read emails generated by the code. No matter what I tried, I couldn't find the temporary mail files generated by the back end code. I knew multiple different SMTP testing servers existed, but I hadn't installed one in a while. I did a quick Google and came across MailDev.
MailDev is a quick install via npm but obviously doesn't matter if you use Node, ColdFusion, or PHP for your back end. You simply install it and then type maildev
in your Terminal/Command Prompt.
Notice this gives you both a SMTP server and a web interface!
And not just a web interface, a pretty snazzy one. As soon as mail shows up, it alerts you and auto updates. The reader is nice and simple.
Note that the email being displayed there is a diagnostic one and kinda ugly. That's not MailDev's fault.
On top of being a simple SMTP test server, it can also relay email and be used within a Node.js application as well.
var MailDev = require('maildev');
var maildev = new MailDev();
maildev.listen();
maildev.on('new', function(email){
// We got a new email!
});
Anyway - I thought this was just darn tootin' nice and thought I'd share.
Archived Comments
Sweet, been looking for something like this for our testing servers across technologies
Very nice! That's one thing I've been trying to tackle for years.
I'm using mailtrap.io to test email
papercut https://papercut.codeplex.com/
Looks cool, but Windows only?
yup