Could not send email holding up script
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