How to send an email to two users after submitting the Entity Forms?
Hello everyone!
I kindly ask experienced forum members to take a moment and help a new Drupal user with the following task.
Brief introduction:
There is a form created using Entity Forms. This form has a 'Name' field and a 'Node reference' field that displays the titles of nodes for the current user.
This form is displayed on the node page through an 'Entity Reference' field (the field is called "Suggest your material").
The task is as follows: after submitting this form, an email should be sent to the author of the node and to the person who submitted the form.
The email should include the name of the person who submitted the form and the title of the node, as a link to the node itself.
I understand that this is all done using Rules. I can see how to get the current user's email (site:current-user:mail), but I can't find the email of the node's author from which the form is being submitted, and it seems to be missing here.
I also don't understand how to implement links to the content.
My knowledge of PHP code is minimal. I think it's not enough to write my own module.
I will be very grateful in advance to everyone.
All of this is being done on Drupal 7.