generating mailer and configuring settings