Adding SendMail functionality.