Email could not be sent holding up script
Operating system version
Description of the issue
I have a timely script that sends emails on a server. Occasionally an error will occur 'Email(s) could not be sent successfully'. Unfortunately this completely stops the script until I log into the server and hit 'ok'.
I'm troubleshooting the cause of the error but in the mean time is there a script step I can put in place to hit ok if that error occurs so the script can continue?
If Get(LastError) = 1506