Added mailing functionality

Mails are sent successfully but are yet to be received.