add sendEmail method