fixing email sending