add mail settings to project setup
fix bug when mailer doesn't work