Added send mail functionalities