add SendEmail function

Funcations what will send the email once the vaules have been added into
the function.