Mail functionality added for leave applications