I'm not able to get to email address configured in email handler in the mail body (twig enabled) with {{ webform.handlers.e_mail.settings.to_mail }} (no output) or {{ webform_token('[webform:handler:e_mail:settings:to_mail]', webform_submission, [], options) }} (token hasn't been replaced). The structure is based on my observation of webform object using xDebug. How can I use this variable?

Comments

milos.kroulik created an issue. See original summary.

jrockowitz’s picture

Status: Active » Closed (works as designed)
The Webform module's issue queue is for bugs, feature requests, and planning. Please post general support questions to Drupal Answers. You can also ask questions or help answer questions on the #webform channel on Drupal Slack.

Handler settings are not exposed via tokens. This feature could create a security risk because handle configuration may contain API keys

milos.kroulik’s picture

Thanks for the answer. But as I mentioned, it doesn't work as a twig variable either. I suppose that's also by design...