So I've been using EE for some years but I've never created an add-on before and I was hoping for some guidance on how to approach it and whether it should be an extension or a module.
If an entry is created I need to trigger a specific email template and pass in some channel entry data.
If an entry has it's status changed I need to trigger one of two templates - approved or denied, again passing in dynamic data.
A nice to have would also be the ability to trigger an email on member registration but this is less important right now.
So it seems to me my add-on would need to be aware when an entry was created or modified, and I would need to know what the status of that entry is and then retrieve entry data and trigger the API. It would also be nice to be able to handle any API response such as success / failure.
Can anyone advise me on best approach for this?