add parameter to general setting 'Send mail condition' with values 'On failure', 'Always'