I use strapi v4. I try to send an email after a new element is created in a defined collection.
I tried to see within controllers but I don’t see where I can add my email sending within the controler. How can I override the default create controller to customize it?
Otherwise, how can I create a webhook? I checked within the settings but it requires an url. From my side I just need to get the hook after create and filter on collection name and send my email. But can’t find where is the source code of the webhook.
Can you help pleasE?