How to send email to referenced user in a comment?

Created on 18 February 2025, 12 days ago

sending email to referenced user in a comment

I am trying to create a very simple model in ECA to send email to referenced user in comment but I don't know how to get the token of email address of referenced user.

My setup:

Content type: Page
Comment type: Standard
Field in comment: User referenced field

I want to send email to Referenced user with Comments on new comment.

Please help.

💬 Support request
Status

Active

Version

2.1

Component

User interface

Created by

🇳🇱Netherlands a.kahn

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @a.kahn
  • 🇩🇪Germany jurgenhaas Gottmadingen

    Hi @a.kahn have you tried the token browser? That's available when you install the token contrib module. You then see the link to the token browser in the right column of the bpmn UI and there you can navigate through and find all the available tokens, their properties and all the syntax.

  • 🇳🇱Netherlands a.kahn

    Hi jurgenhaas,

    Oh thank you for quick reply. Worked out. I found the token browser in the top-right corner of the bpmn UI. I had to clear the cache and then the Referenced field showed up in the tokens. Thank you.

    Another question.

    In the same node type Page I have a Taxonomy Referenced field that has some terms. The users also have the same Taxonomy Referenced field with the same terms.
    So when a new Page is created, I want to send an email to the user that has same taxonomy term in his profile. A bit complicated but I think with ECA its possible. Can you help?

  • 🇩🇪Germany jurgenhaas Gottmadingen

    I'm afraid I can't provide such detailed development but there are so many samples around in the ECA Guide (https://ecaguid.org), and a lot of issues around here in the queue. If nothing helps, maybe somebody in the ECA channel of Drupal slack may have some spare time.

  • 🇩🇪Germany jurgenhaas Gottmadingen
Production build 0.71.5 2024