Fix mailer in production and development