mailer setup with controller and environments
minor fix