Refactored mail config
Merge pull request #427 from liuchuangww/user

Refactored mail config