configures mailer