add email functions