Monday, October 18, 2010

Send email using Gmail as a free SMTP with Java Mail

This has bugged me forever. No more!



This can be simplified to be tested with a Linux sendmail server or Apache James on Windows. Just make sure you test this on a network that won't block your test calls otherwise you'll go crazy trying to debug and won't find a problem in your code or configuration. Also make sure to poke the right holes through your firewall.

No comments:

Post a Comment