mailer config
mailer test implementation