In this case you can use lifecycle hooks (afterCreate function).
It runs every time you create the content, no matter how you create it (Admin or RestAPI).
- Create a function that sends email.
- Add it to the lifecycle afterCreate function.
That’s all.
In this case you can use lifecycle hooks (afterCreate function).
It runs every time you create the content, no matter how you create it (Admin or RestAPI).
That’s all.