working on mailer service and adding tests