Closed yobottehg closed 1 month ago
Added this feature in this PR https://github.com/payloadcms/payload/pull/8271
You can now output all submission data using {{*}}
wildcard and {{*:table}}
if you want it rendered as a table in your email.
This issue has been automatically locked. Please open a new issue if this issue persists with any additional detail.
Link to reproduction
No response
Environment Info
Describe the Bug
Currently authors need to provide every field name and value in the email message template. To maintain this in conjunction with the form fields and in addition on multiple emails that are send via that form is error prone and cumbersome.
Other CMS solve this more intelligently.
For example Drupal webforms module has the following default mail body:
The token
[webform_submission:values]
will be converted to a table of all fields as key / value pairs.This most likely covers 90% of the use cases of all administration emails while reducing author load and errors.
Reproduction Steps
See description.
Adapters and Plugins
plugin-form