Testing sent emails during development

Posted by Mark Drew on code on October 15, 2009

Tagged under

There are many times when I get to the part of developing on my local machine that I want a smtp server to use. I have tried postfix and some other unix type applications on OS X for this but none of them were quite what I wanted, since I want to also integrate tests with it.

And to be honest, it took me too much time (that I don't have as you have noticed by the lack of blog posts) to figure out all the settings to do this.

Until I found fakemail (http://sourceforge.net/projects/fakemail/).

Fakemail is a python (or perl) script that you can run to simulate an SMTP server, but more importantly you can define where the emails that are sent out go.

It is very easy to install (check out this page: http://www.lastcraft.com/fakemail.php) and run, and does the trick splendidly.




comments powered by Disqus