adding more functionality for send mail