Production version. Refactor some configuration about the email.