User — email
Open in builderThis is a property of the entity itself, so there’s no field name to fill in.
Raw entity
Open in builder (Raw entity)Reads the entity directly, before field formatters run.
- Snippet 1
{{ user.mail. value }} - Snippet 2
{{ node.getOwner( ) .getEmail( }})
Gotcha
The first is for user.html.twig, the second for a node’s author. Printing email addresses exposes them to visitors and scrapers.