# Change Password e-mail template, specify different e-mail addresses in From field

**URL:** <https://community.auth0.com/t/change-password-e-mail-template-specify-different-e-mail-addresses-in-from-field/91519>\
**Category:** Get Help\
**Tags:** from-field, email, change-password\
**Created:** [September 29, 2022, 7:55am UTC](https://community.auth0.com/t/change-password-e-mail-template-specify-different-e-mail-addresses-in-from-field/91519 "2022-09-29T07:55:18Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![emiel](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/emiel/32/33674_2.png) [@emiel](https://community.auth0.com/u/emiel)\
**Post date:** [September 29, 2022, 7:55am UTC](https://community.auth0.com/t/change-password-e-mail-template-specify-different-e-mail-addresses-in-from-field/91519/1 "2022-09-29T07:55:18Z")

</div>

Hi there,

Is it possible to be able to differentiate between e-mail addresses that are specified in the **From** field?  
Currently it’s configured like this:

![image](https://global.discourse-cdn.com/auth0/original/3X/8/5/854e3d11402099558ba8eba1e3668404ebe37aa7.png)

But we would like to be able to use something like one e-mail address for a certain application and a ‘generic’ one as the fallback.

Just like we did with **Subject** I’m thinking of something like:

`{{ application.name }} {% if application.client_metadata.is_portal == 'true' %}<application-one-support@mydomain.com>{% else %}<support@mydomain.com>{% endif %}`

It seems it’s not working, but perhaps the syntax needs to be a bit different because of the `<` and `>` ?

Thanks!

---

<div class="post-metadata">

**Author:** ![SaqibHussain](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/saqibhussain/32/42924_2.png) [@SaqibHussain](https://community.auth0.com/u/SaqibHussain)\
**Post date:** [September 30, 2022, 6:39am UTC](https://community.auth0.com/t/change-password-e-mail-template-specify-different-e-mail-addresses-in-from-field/91519/2 "2022-09-30T06:39:15Z")

</div>

Hi @emiel

Thanks for getting in touch with Auth0 Community.

You can try this technique:

```auto
{{ application.name }} {% if user.app_metadata.is_portal == 'true' %} <support@example1.com> {% else %} support@example2.com {% endif %}

```

I gave this a quick test and seems to work as expected.

Warm regards

---

<div class="post-metadata">

**Author:** ![emiel](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/emiel/32/33674_2.png) [@emiel](https://community.auth0.com/u/emiel)\
**Post date:** [September 30, 2022, 12:55pm UTC](https://community.auth0.com/t/change-password-e-mail-template-specify-different-e-mail-addresses-in-from-field/91519/3 "2022-09-30T12:55:19Z")

</div>

Hello @SaqibHussain

Thanks for this. It works indeed.  
Just a small comment on your code snippet, the second address does not include the angle brackets which I believe is necessary for the e-mail client to recognize it as the sender’s address.

In any case. It does work. Thanks! 🙂

---

<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:** [October 14, 2022, 12:55pm UTC](https://community.auth0.com/t/change-password-e-mail-template-specify-different-e-mail-addresses-in-from-field/91519/4 "2022-10-14T12:55:44Z")

</div>

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