Page 1 of 1

Sending e-mail

Posted: Wed Mar 28, 2007 1:12 pm
by gooser60
I was wondering if you could show me an example of a task that I can create that would send an e-mail stating "Success" if the job completed with no errors or an e-mail stating "Failure" if the job completed with errors.

Sending e-mail

Posted: Thu Mar 29, 2007 8:05 am
by Oleg
Usually the task can fail on some critical step only. By default RoboTask abortes the task execution when an error has occured.
In order to process this error do the following:
- Open the task in task editor and go to "Advanced" tab
- Set the parameter "If error occured" to "Continue execution"
Now you ready to handle an error manually

There is {IsError} variable which detectes the error in previous step. Algorithm of your task will looks so:

Do some steps
Do Critical step
If {IsError} = TRUE then
   do some steps or execute another task
End If
Do some steps

Look at this example. This task opens notepad and waits 20 sec until notepad.exe will be closed. If you close notepad within 20 sec the task will says "OK" otherwise it shows an error message in 20 seconds.

Also welcome to our examples repository. Maybe you will find something interesting for you.