fix email sending