add sendmail

If the validation has passed then it will activate the function to send
an email