added basic email sending