From http://www.apply-templates.com/blog/sending-an-email-in-java