Added e-mail code
added e-mail routine