updated to new mailer library