Send Email with Exception

Hi All,

Am working on a process where I should be logging into a web application. I am trying to catch the exceptions and send an email with the details.
How can I send a email with the exception information and screenshot of it ?

Hey
You can keep save attachment activity in Catch block and send outlook mail message with attachment (pass the complete path where are saving the attchment)
It will work please try

Thanks

Hello @Abc_Xyz1

So when you are logging to the web application, you can check for the existance of an element using Element exists. If false, use throw activity to throw the exception and the entire process should be in a try catch activity.

Then in the catch section write the log to the text file and share it via email. You can refer to the below thread for writing the logs.