Support > Forums > OpenBots Server > how to configure email notifications

how to configure email notifications

TI Distribucion

  • Reporter
  • Calender Icon July 29,2023 at 4:14 PM

Hello,

I would like to know how to configure email notifications when jobs ends with errors.

Thanks

This forum has 65 topics, 191 replies, and was last updated 2 months ago by Ghouse Shaik

Nataly Alvarado...

  • Participant
  • Calender Icon August 07,2023 at 5:24 PM

Hi ti-distribucion,

There are different ways to setup email notifications. ​ It is recommended to include an email report script in all your automations. This report should be sent at the end of your bot executions containing a summary of the job execution and relevant metrics. ​ Generally, the Main script architecture of most jobs are placed inside a try-catch or try-catch-finally command. The email notification logic is usually included in the "finally" or "catch", depending on if the email should be sent for both successful and failed jobs, or only for failed jobs. ​ Emails can be sent using the SMTP, Outlook, Gmail or Server Email commands. ​ Alternatively, integration events can be created on Server, to alert you when a jobs had been marked as "failed" on Server. Notifications are sent via Server email, so it is a requirement to setup a Server email beforehand.

You are not authorized to reply, please click here to login and add your reply to this topic.