added the email functionality to this todostack