So I am sending a ton of email from PHP right now in the section of an app that I am writing.
I want to see the emails I am sending but I don’t want them sent. Sound familiar? Well, I found a tool that will take care of this situation. It is called DevNullSmtp.
It works great, and can be used from any email client including PHP, Java, Ruby, Microsoft Outlook, etc.
It is written in java so it should even work for Linux purists. I’m sure there is a better way to do it there.
The only problem you might have is that your firewall is over zealous, but I just added an exception to mine, just in case.