Scheduler script stops if it encounters an email address it thinks is bad.

Scheduler script stops if it encounters an email address it thinks is bad.

I have sever custom scheduler scripts that are supposed to iterate through and send emails to our staff. If the script encounters what it thinks is a bad email address it errors and stops. The additionally troubling thing is the error logs aren't detailed enough to figure out on which address the script stumbles.

Below is a streamlined version of the script. 

How do I get it to keep running if it encounters an email it doesn't like?
  1. for each e in Staff[((Email_Address is not null) && Notice)]
  2. {
  3. eml=e.Email_Address;
  4. sendmail
  5. [
  6. from:zoho.adminuserid
  7. to:eml
  8. subject:"Your report is late"
  9. message:"Submit your report"
  10. content type:HTML
  11. ]
  12. }