- πΊπΈUnited States zengenuity
I have this functionality mostly working the MR. However, in practice, this core issue makes it hard to use: https://www.drupal.org/project/drupal/issues/3031637 β¨ Entity reference: allow specifiying that every bundle is allowed Needs work
I think when you build a template for a webform notification, you would normally want to have an entity reference field that holds a reference to the submission the email is about. That's how you get the tokens in the email template.
You can do this, and it works, but core requires that every entity reference field specify allowed bundles, which means that you have to specify the exact webforms in the field configuration. You can't just specify any webform submission. This doesn't prevent you from using an override for the webform, but it creates an unintuitive issue where you have to update the field configuration any time you add a new webform to the site, or you have to create a new webform submission entity reference field for each template. Each of these is somewhat annoying.
I'm still going to finish this up and release it, but I wanted to acknowledge the issue here, since it's likely to come up once this feature is available.
- πΊπΈUnited States zengenuity
I'm going to postpone this issue for now to see what develops with the core issue β¨ Entity reference: allow specifiying that every bundle is allowed Needs work .
In the meantime, Webform emails can be sent via Easy Email with the changes made in β¨ Create a way to generically override an email without parameter mapping Active .
From that issue, there is a new option in the Easy Email Overrides module that allows you to provide a (probably blank) template and have it copy over the content from the originally sent email to it on sending. In addition, overrides can now match sent emails by module or match all sent emails from the website. So, you can configure an override to wrap all emails from Webform in an Easy Email template before sending. This should address most of the use cases people have related to integrating Webform and Easy Email.