My team is working on a simple message notification using the message stack but a bit tricky to implement.
The goal is when a user is subscribed to content, a notification message will be delivered to the user's email address.
We are trying to follow this steps, doing the configuration in the browser. But the last step, we think should be added manually in a certain file as mentioned in this comment.
Questions:
- Where should I add the code to properly send the message into email?
- Is there a need to create a custom module to achieve it?
Where should I add the code to properly send the message into email?
Depends of when you would like to send the notification message. When a node is updated? When a new node is created? or both?