Webhook on email sent? Or other way to hook into email sending function?

I am trying to build an integration with ERPNext. ERPNext has an IMAP function that will bring in received emails, however it won’t work for sent emails…

So, I’d like a way to send a webhook to the ERP instance every time an email is sent (so the sent email can be linked to the respective Lead in the ERPNext instance).

Is there any way to hook on to the function that sends emails in Mautic?

I am not sure because I have not used this yet, but maybe you can help yourself with this somehow (configure the webhook):

I’m interested in this if you need a tester.