Added an email functionality