statamic / v2-hub

Statamic 2 - Feature Requests and Bug Reports
https://statamic.com
95 stars 5 forks source link

FR: Improve form mails ✉️ #1267

Open rrelmy opened 7 years ago

rrelmy commented 7 years ago

Automagic mails

Currently the available variables are dumped into the mail without any 💔.

This could be improved if the available labels from the formset would be used instead of the key. Also there is no need to add the variables now and today. date should be enough.

Custom form mail template

Access to the form data would be great, so that the Labels and order could be used.

lukeagsmith commented 7 years ago

+1

rrelmy commented 7 years ago

Also access to globals data would be nice too

jackmcdade commented 7 years ago

You're seeing behind the curtain when it comes to automagic emails. A lot of things are "dumped" into the view layer to give you access to them. If they were loaded on demand, the whole system would be much slower. We can certainly look at making more things available, but they're be "dumped" into the template too, so we'd have to either get right of the Automagic emails (as they were added as a nice, simple feature), or totally rework them. Just letting you know that it's not a quick little thing, but we've thought about it.