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?
- for each e in Staff[((Email_Address is not null) && Notice)]
- {
- eml=e.Email_Address;
- sendmail
- [
- from:zoho.adminuserid
- to:eml
- subject:"Your report is late"
- message:"Submit your report"
- content type:HTML
- ]
- }