add Mailer class to encapsulate javax.mail usage