Send email in case of any error in catch block

Hello everyone. This is my first post here.
So I am new in UIPath, but I have managed to create a complete flow.
What I find difficult is how to send an email for any error that may happen during the process.

What I have done is this:
So all the activities are in try block. But I want to send an email in case of any error in catch block.
Can anyone please help me?

Use Send SMTP Mail Message, it’s more reliable and simpler.

Anyway, if you want to send an email when an error happens, put the send email activity in the catch block, which you have done. What’s the problem?

Cross Link / Duplicate:

1 Like

When I run the process, and an error happens, I don’t get any email.
I can’t figure out why this happens.