Add mail helper and its related config;
Enhance Leave.java