started email functionality