Save form data with field names instead of labels?

I would like to show form data with field names instead of labels in the html email that gets sent when my form is saved.

I have tried to replace

{{ field.label|t|e }}

with

{{ field.name|t|e }}

in forms/data.html.twig but then no email is sent. I get no error message either.

I can print the field name with {{ dump(field.name) }} so I don’t understand why it won’t print but then I’m also a Grav/Twig noob.

Any ideas?