code to send email