Created on 30 April 2024, about 2 months ago

Problem/Motivation

We have a webform for page feedback that will send an email to the authors of the attached page if somebody fills it out. It uses the [webform-submission:source-entity:author:mail] token in the configuration for that form, to be able to fill in the email of the author of that page.

What we would like is to be able to have this form notification go to the primary author AND all the co-authors through a similar token.

Steps to reproduce

Create a webform and in the Email/Handlers section, set up an email. In our context, the desired token would go in the To field with a custom To email address.

Proposed resolution

I think we can probably get to our end goal of having co-authors also receive the email with a hook intercepting when it starts to send out, but a token seems like it would be cleaner, easier to maintain, and potentially useful for others.

✨ Feature request
Status

Active

Version

1.1

Component

Code

Created by

πŸ‡¨πŸ‡¦Canada ryanrobinson_wlu

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

Comments & Activities

  • Issue created by @ryanrobinson_wlu
  • πŸ‡§πŸ‡ͺBelgium DieterHolvoet Brussels

    You could send the mail to the author and CC to the co-authors. According to the CC field description 'multiple email addresses may be separated by commas'.

    I would have expected a token like [webform_submission:source-entity:co_authors] to already exist automatically, but seems like it doesn't. We should probably look into why the Token module isn't providing a token for that field.

Production build 0.69.0 2024