# Email on password reset and redirect url: what is {application.name}?

**URL:** <https://community.auth0.com/t/email-on-password-reset-and-redirect-url-what-is-application-name/7249>\
**Category:** Get Help\
**Tags:** password-email, password-reset, redirect\
**Created:** [June 25, 2017, 12:31am UTC](https://community.auth0.com/t/email-on-password-reset-and-redirect-url-what-is-application-name/7249 "2017-06-25T00:31:38Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![bradflyon](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@bradflyon](https://community.auth0.com/u/bradflyon)\
**Post date:** [June 25, 2017, 12:31am UTC](https://community.auth0.com/t/email-on-password-reset-and-redirect-url-what-is-application-name/7249/1 "2017-06-25T00:31:38Z")

</div>

I’m looking through the reset password flow, after testing it with the provided lock example (tiny html file with the needed js).

I saw that you can configure the email and configure where you go after reset via this page:

> **[Log in | Auth0 Dashboard](https://auth0.auth0.com/u/login/identifier?state=hKFo2SBnM3pYUkRXbE9ZVlQ5R0FJT0xlNmxHeUhFdDl5RlJEdqFur3VuaXZlcnNhbC1sb2dpbqN0aWTZIE5TZGhjQkVKNkFiTlZRY25uOU53bzVQYWpDdndqOW14o2NpZNkgekVZZnBvRnpVTUV6aWxoa0hpbGNXb05rckZmSjNoQUk)**

What I can’t figure out is what {application.name} refers to, because you might be using auth0 for more than one application, and you’d want the user to be returned to the one from which they launched the reset password.

---

<div class="post-metadata">

**Author:** ![prashantT](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/prashantt/32/6002_2.png) [@prashantT](https://community.auth0.com/u/prashantT)\
**Post date:** [June 26, 2017, 8:01am UTC](https://community.auth0.com/t/email-on-password-reset-and-redirect-url-what-is-application-name/7249/2 "2017-06-26T08:01:17Z")

</div>

Change Password requests are triggered with a `client_id` as a parameter - this is mapped to the name of the client, which is available in the email templates as `{{application.name}}`. Emails, as well as the the `Redirect To` URLs can be customized using this, or the `application.clientID` macro, e.g.

```
{% if application.clientID == "CLIENT1_ID" %} https://www.client1.com {% else %} http://client2.com {% endif %}

```

---

<div class="post-metadata">

**Author:** ![prakharkumar79](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/prakharkumar79/32/7042_2.png) [@prakharkumar79](https://community.auth0.com/u/prakharkumar79)\
**Post date:** [July 3, 2017, 12:50pm UTC](https://community.auth0.com/t/email-on-password-reset-and-redirect-url-what-is-application-name/7249/3 "2017-07-03T12:50:10Z")

</div>

Hello @prashant,  
Can you please tell me how these macros( {{application.name}}, {{url}} etc) are made available to the email templates?

Can I store any custom URL in the macro {{url}} (available in change password template)?

Or, Can I define my own macro to use in the email templates?

---

<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:** [March 2, 2018, 5:54am UTC](https://community.auth0.com/t/email-on-password-reset-and-redirect-url-what-is-application-name/7249/4 "2018-03-02T05:54:56Z")

</div>


