Added  email functionality