Sending e-mail

Discuss RoboTask here
Post Reply
gooser60
Posts: 9
Joined: Mon Mar 19, 2007 12:52 pm
Location: United States

Sending e-mail

Post 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.
Oleg
Site Admin
Posts: 3014
Joined: Thu Jan 01, 1970 1:00 am
Contact:

Sending e-mail

Post 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.
Last edited by Oleg on Thu Mar 29, 2007 12:13 pm, edited 1 time in total.
Post Reply