added mailer + tests