fixed email sending