changes to email sending