configure app and add smtp mailer