Community

Finding out email from node form for sending email with rules

I would need to send email by using rules to the address that is given in the first field in node form that user submits. I do not want to use webform for this as there is need to later process some other field values etc.

Is there short php code that I can use to find out the content of the field?

Comments

So, your node has a field for

So, your node has a field for emails, like field_email?

Of so, you just need to set a condition in your rule for "Entity has field" for field_email.

Then in the action, you can access that field in the replacement pattern for the "to" field.

Oh, of course. Thank you!

Oh, of course. Thank you!