So, I define my message in
hook_entity_update() and send it in
I am trying to send emails in the following case.
- user U1 consult a node created by user U2 (the aim is to permit to U1 to give his impression to U2 thanks to a select field). When U1 gave his impression, content is registered.
- I need to send a email to U2 (the node author), but since he isn't the current user, I cannot use
hook_entity_update(), how can I identify the author of the current entity, knowing that "author" is not provided by
Is there a specific service?