restoring email sending