setup and testing of mailer settings