I have an alert that is setup to send an email when there are no results. The search is returning an error, no results, but no emails are getting sent. Is there a way to make an error the trigger for an alert?
It should be the case that if you use the graceful=false
parameter to the sendemail
command, an email will get sent on error.