# Sending Different Welcome Emails By Role

**URL:** <https://community.auth0.com/t/sending-different-welcome-emails-by-role/61778>\
**Category:** Get Help\
**Tags:** welcome-email, email, roles\
**Created:** [April 26, 2021, 9:57pm UTC](https://community.auth0.com/t/sending-different-welcome-emails-by-role/61778 "2021-04-26T21:57:23Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![dkaminsky](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dkaminsky/32/18785_2.png) [@dkaminsky](https://community.auth0.com/u/dkaminsky)\
**Post date:** [April 26, 2021, 9:57pm UTC](https://community.auth0.com/t/sending-different-welcome-emails-by-role/61778/1 "2021-04-26T21:57:23Z")

</div>

Hello Auth0 Community,

We have several distinct roles that give access to different applications and services. Is there a method to send different welcome emails based on the Role or Roles associated with a user? For example; Bob has role DO Stuff and Tina has role Review Stuff, Bob should get Welcome to Doing Stuff email, and Tina should get the Welcome to Reviewing Stuff email with different content than the email bob received.

---

<div class="post-metadata">

**Author:** ![stephanie.chamblee](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/stephanie.chamblee/32/26087_2.png) [@stephanie.chamblee](https://community.auth0.com/u/stephanie.chamblee)\
**Post date:** [April 27, 2021, 1:14pm UTC](https://community.auth0.com/t/sending-different-welcome-emails-by-role/61778/3 "2021-04-27T13:14:29Z")

</div>

Hi @dkaminsky,

The Welcome Email should have access to [common variables](https://auth0.com/docs/email/customize-email-templates#common-variables), including user.app\_metadata. If you create the user with the role stored in the user’s app\_metadata, then you can conditionally render content using [Liquid Syntax](https://auth0.com/docs/email/customize-email-templates/use-liquid-syntax-in-email-templates):

`{% if user.user_metadata.role == 'do-stuff' %} [email body for "do stuff" role] {% elsif user.user_metadata.role == 'review-stuff' %} [email body for "review stuff" role] {% endif %}`

> **[Customize Email Templates](https://auth0.com/docs/customize/email/email-templates)**
>
> Learn how to customize your emails with Liquid templating syntax.

---

<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:** [May 12, 2021, 1:14pm UTC](https://community.auth0.com/t/sending-different-welcome-emails-by-role/61778/4 "2021-05-12T13:14:37Z")

</div>

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