Added sending mail functionalit