Hey guys,
I have a continuous script that runs perfectly in a loop with logic, but it is not totally reliable due to mail send errors. Sometimes mails had timeout issues due to no internet connectivity and this not only fails sending the e-mail, but crashes the whole script run.
So, how can I overcome this? Sure I can add an if statement before sending e-mail to check if there’s internet, but then again I wonder if there’s something like try…catch for errors altogether?
Thanks.