fixing mailer configuration in environment