allow toggling of email sending