Conditions aren't working for emails