# Customize emails based on database connection

**URL:** <https://community.auth0.com/t/customize-emails-based-on-database-connection/9112>\
**Category:** Get Help\
**Tags:** email-template, database-connections\
**Created:** [January 3, 2018, 4:01am UTC](https://community.auth0.com/t/customize-emails-based-on-database-connection/9112 "2018-01-03T04:01:37Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![gestionyuzu](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@gestionyuzu](https://community.auth0.com/u/gestionyuzu)\
**Post date:** [January 3, 2018, 4:01am UTC](https://community.auth0.com/t/customize-emails-based-on-database-connection/9112/1 "2018-01-03T04:01:37Z")

</div>

I am wondering if it’s possible to customize email content, specifically the reset password email content, based on which database connection the user belongs to?

---

<div class="post-metadata">

**Author:** ![jmangelo](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/jmangelo/32/7923_2.png) [@jmangelo](https://community.auth0.com/u/jmangelo)\
**Post date:** [January 3, 2018, 7:06pm UTC](https://community.auth0.com/t/customize-emails-based-on-database-connection/9112/2 "2018-01-03T19:06:11Z")

</div>

According to the [reference documentation](https://auth0.com/docs/email/templates#change-password-confirmation-email) the connection name is surfaced to the template so customization based on that would be possible. You can also make use of the [Liquid debug tag](https://auth0.com/docs/email/templates#debugging-liquid-template-variables) to have confirmation of the information that is surfaced to each template.

---

<div class="post-metadata">

**Author:** ![konrad.sopala](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/konrad.sopala/32/13516_2.png) [@konrad.sopala](https://community.auth0.com/u/konrad.sopala)\
**Post date:** [July 25, 2019, 9:19am UTC](https://community.auth0.com/t/customize-emails-based-on-database-connection/9112/3 "2019-07-25T09:19:02Z")

</div>


