Change email sending switch to a boolean.