# Send email to list of users based on role

**URL:** <https://forum.bubble.io/t/send-email-to-list-of-users-based-on-role/343711>\
**Category:** Need help\
**Created:** [October 9, 2024, 2:38pm UTC](https://forum.bubble.io/t/send-email-to-list-of-users-based-on-role/343711 "2024-10-09T14:38:56Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![tiziano](https://avatars.discourse-cdn.com/v4/letter/t/e19adc/32.png) [@tiziano](https://forum.bubble.io/u/tiziano)\
**Post date:** [October 9, 2024, 2:38pm UTC](https://forum.bubble.io/t/send-email-to-list-of-users-based-on-role/343711/1 "2024-10-09T14:38:56Z")

</div>

I was trying to set a formula to send an email to all the users that are set as Managers once a new user registers.

Here is what I’ve done but it’s not working.

 ![Screenshot 2024-10-09 at 09.46.10](https://us1.discourse-cdn.com/bubble/original/3X/5/f/5f282b5af5b0403923665fe1e5dbcf7757b41e2a.png)

What am I missing?  
Thanks  
Tiziano

---

<div class="post-metadata">

**Author:** ![sociosemp](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/sociosemp/32/242784_2.png) [@sociosemp](https://forum.bubble.io/u/sociosemp)\
**Post date:** [October 9, 2024, 3:04pm UTC](https://forum.bubble.io/t/send-email-to-list-of-users-based-on-role/343711/2 "2024-10-09T15:04:12Z")

</div>

Hi @tiziano I preferr do this action with others ways. I ll show you:

- 
  1. In Backend, you must configure an api workflow to run this action in a list of things. Configure de params with = user/ type= list of users.

- 
  1. Configure the action " Schedule api workflow on a list " for run this.

Like that:

 ![Captura de tela 2024-10-09 115143](https://us1.discourse-cdn.com/bubble/original/3X/2/9/29dbd495d1c03d611191e991d95925103c7ef545.png)

After, configure the action:  
 ![Captura de tela 2024-10-09 115446](https://us1.discourse-cdn.com/bubble/original/3X/6/f/6f1b4e6084ed8b6b0bd2dd5cbcd01632cadd29d0.png)

- 
  1. In frontend, use a custom event on page “join” ( The page s uses for sign or signup the user ) for after users take your credentials and defines roles in the app, search by these users and schedule this list in backend. I hope s helped you

---

<div class="post-metadata">

**Author:** ![tiziano](https://avatars.discourse-cdn.com/v4/letter/t/e19adc/32.png) [@tiziano](https://forum.bubble.io/u/tiziano)\
**Post date:** [October 10, 2024, 8:41am UTC](https://forum.bubble.io/t/send-email-to-list-of-users-based-on-role/343711/3 "2024-10-10T08:41:05Z")

</div>

hello,  
thank you for your message.  
I set it up as you said, but I’m not about the last point. I set up the Schedule API workflow on a list, but it still doesn’t work.

 ![Screenshot 2024-10-10 at 09.39.15](https://us1.discourse-cdn.com/bubble/original/3X/a/8/a895bbe71b7d64798479f3b65e8ef30f421893a3.png)

Can you help me to understand what I’ve done wrong?  
Thanks

---

<div class="post-metadata">

**Author:** ![sociosemp](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/sociosemp/32/242784_2.png) [@sociosemp](https://forum.bubble.io/u/sociosemp)\
**Post date:** [October 10, 2024, 5:40pm UTC](https://forum.bubble.io/t/send-email-to-list-of-users-based-on-role/343711/4 "2024-10-10T17:40:42Z")

</div>

Hi! @tiziano Replace “This user” by the search making above for send this list as parameter.

---

<div class="post-metadata">

**Author:** ![cyril.legaspi](https://avatars.discourse-cdn.com/v4/letter/c/d07c76/32.png) [@cyril.legaspi](https://forum.bubble.io/u/cyril.legaspi)\
**Post date:** [October 11, 2024, 7:55am UTC](https://forum.bubble.io/t/send-email-to-list-of-users-based-on-role/343711/5 "2024-10-11T07:55:40Z")

</div>

@tiziano , could you please show me the work you’ve done on the backend? The frontend looks fine to me.

---

<div class="post-metadata">

**Author:** ![tiziano](https://avatars.discourse-cdn.com/v4/letter/t/e19adc/32.png) [@tiziano](https://forum.bubble.io/u/tiziano)\
**Post date:** [October 11, 2024, 8:32am UTC](https://forum.bubble.io/t/send-email-to-list-of-users-based-on-role/343711/6 "2024-10-11T08:32:20Z")

</div>

I’m sorry I don’t think I understand what you’re saying.

---

<div class="post-metadata">

**Author:** ![tiziano](https://avatars.discourse-cdn.com/v4/letter/t/e19adc/32.png) [@tiziano](https://forum.bubble.io/u/tiziano)\
**Post date:** [October 11, 2024, 8:33am UTC](https://forum.bubble.io/t/send-email-to-list-of-users-based-on-role/343711/7 "2024-10-11T08:33:05Z")

</div>

Hello,  
this is what i did in the backend

 ![Screenshot 2024-10-11 at 09.31.32](https://us1.discourse-cdn.com/bubble/original/3X/e/5/e588f58d8d449e4aa18dbb9eb3bd91e6fe677a8f.png)  
 ![Screenshot 2024-10-11 at 09.31.25](https://us1.discourse-cdn.com/bubble/original/3X/c/2/c259eff87ef1e51efd4cefd8ec39432b5c59de10.png)

---

<div class="post-metadata">

**Author:** ![cyril.legaspi](https://avatars.discourse-cdn.com/v4/letter/c/d07c76/32.png) [@cyril.legaspi](https://forum.bubble.io/u/cyril.legaspi)\
**Post date:** [October 11, 2024, 10:55am UTC](https://forum.bubble.io/t/send-email-to-list-of-users-based-on-role/343711/8 "2024-10-11T10:55:18Z")

</div>

Please check Ignore privacy rules when running the workflow.

---

<div class="post-metadata">

**Author:** ![tiziano](https://avatars.discourse-cdn.com/v4/letter/t/e19adc/32.png) [@tiziano](https://forum.bubble.io/u/tiziano)\
**Post date:** [October 11, 2024, 11:24am UTC](https://forum.bubble.io/t/send-email-to-list-of-users-based-on-role/343711/9 "2024-10-11T11:24:06Z")

</div>

It still doesn’t work. Am I missing something in how to set up the users database?

---

<div class="post-metadata">

**Author:** ![cyril.legaspi](https://avatars.discourse-cdn.com/v4/letter/c/d07c76/32.png) [@cyril.legaspi](https://forum.bubble.io/u/cyril.legaspi)\
**Post date:** [October 11, 2024, 12:09pm UTC](https://forum.bubble.io/t/send-email-to-list-of-users-based-on-role/343711/10 "2024-10-11T12:09:24Z")

</div>

![Privacy](https://us1.discourse-cdn.com/bubble/original/3X/d/8/d8e6e829da15e31d3940ef733b433684b1cbce22.png)  
Try to copy my Privacy setup on the User Data Type.

---

<div class="post-metadata">

**Author:** ![tiziano](https://avatars.discourse-cdn.com/v4/letter/t/e19adc/32.png) [@tiziano](https://forum.bubble.io/u/tiziano)\
**Post date:** [October 11, 2024, 1:16pm UTC](https://forum.bubble.io/t/send-email-to-list-of-users-based-on-role/343711/11 "2024-10-11T13:16:33Z")

</div>

Yes that’s it.  
I forgot to check the privacy.  
Thank you so much to both for your help

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/bubble/original/3X/2/8/2847faa74692c2ffa5d939d3dc3724cdd060d247.png) [@system](https://forum.bubble.io/u/system)\
**Post date:** [December 18, 2024, 2:39pm UTC](https://forum.bubble.io/t/send-email-to-list-of-users-based-on-role/343711/12 "2024-12-18T14:39:36Z")

</div>

Closed on December 18, 2024, 2:39pm UTC

This topic was automatically closed after 70 days. New replies are no longer allowed.
