fixed email send issue