Modified to send email to the address entered.