# Can I use {{ client.client\_metadata }} inside custom email templates?

**URL:** <https://community.auth0.com/t/can-i-use-client-client-metadata-inside-custom-email-templates/16412>\
**Category:** Get Help\
**Tags:** email-template\
**Created:** [October 6, 2018, 9:20pm UTC](https://community.auth0.com/t/can-i-use-client-client-metadata-inside-custom-email-templates/16412 "2018-10-06T21:20:22Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![badi](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/badi/32/8888_2.png) [@badi](https://community.auth0.com/u/badi)\
**Post date:** [October 6, 2018, 9:20pm UTC](https://community.auth0.com/t/can-i-use-client-client-metadata-inside-custom-email-templates/16412/1 "2018-10-06T21:20:22Z")

</div>

I have set a client metadata in advanced settings for my application. I don’t seem to be able to use {{ client.client\_metadata.foo }} in my custom email templates.

Is this a supported feature for custom email templates?

---

<div class="post-metadata">

**Author:** ![shayan.memari](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/shayan.memari/32/5175_2.png) [@shayan.memari](https://community.auth0.com/u/shayan.memari)\
**Post date:** [October 7, 2018, 11:53pm UTC](https://community.auth0.com/t/can-i-use-client-client-metadata-inside-custom-email-templates/16412/2 "2018-10-07T23:53:57Z")

</div>

You can use {{ client.client\_metadata.foo }} in email templates. Make sure you are testing from the application itself i.e signing up a real user so you receive the verification email and then verifying the email to receive the welcome email. if you send a test email from the dashboard, it may not include all the variables in the emails.

For testing and debugging purposes, you can include `{% debug %}` tag inside the email template to receive all the available variables you can use inside the email.

---

<div class="post-metadata">

**Author:** ![badi](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/badi/32/8888_2.png) [@badi](https://community.auth0.com/u/badi)\
**Post date:** [October 8, 2018, 6:36am UTC](https://community.auth0.com/t/can-i-use-client-client-metadata-inside-custom-email-templates/16412/3 "2018-10-08T06:36:52Z")

</div>

> [@shayan.memari](#):
>
> {{ client.client\_metadata.foo }}

Thank you so much for your response. the template debug section that came through someone didn’t have {{ client.client\_metadata }} in it at all. Also, it looks like the Client ID that came through in the debug template isn’t one of the applications I have. So - it is strange. Investigating more.

But one field I got interested in is { “home\_url”: “about:blank”, } I want to use this in the email template to link to the domain URL (so it can be different for staging and production). Where do I set this variable?

Thank you again.

---

<div class="post-metadata">

**Author:** ![shayan.memari](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/shayan.memari/32/5175_2.png) [@shayan.memari](https://community.auth0.com/u/shayan.memari)\
**Post date:** [October 8, 2018, 11:24pm UTC](https://community.auth0.com/t/can-i-use-client-client-metadata-inside-custom-email-templates/16412/4 "2018-10-08T23:24:46Z")

</div>

This may be because you have sent the emails from your management dashboard and not directly from one of your Applications. The Client ID used when you Send/“Try” the emails from dashboard is a generic application called “All Applications” that will not show up in the Application list.

“home\_url” and “support\_url” are the same. They can be configured in your tenant settings under Support URL: [https://manage.auth0.com/#/tenant](https://manage.auth0.com/#/tenant)

Hope this helps.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [November 7, 2018, 11:24pm UTC](https://community.auth0.com/t/can-i-use-client-client-metadata-inside-custom-email-templates/16412/5 "2018-11-07T23:24:49Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
