# Room booking notification emails

**URL:** <https://talk.getindico.io/t/room-booking-notification-emails/2093>\
**Category:** Administrators\
**Created:** [January 24, 2021, 11:19am UTC](https://talk.getindico.io/t/room-booking-notification-emails/2093 "2021-01-24T11:19:50Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![mohammad\_amro](https://talk.getindico.io/user_avatar/talk.getindico.io/mohammad_amro/32/385_2.png) [@mohammad\_amro](https://talk.getindico.io/u/mohammad_amro)\
**Post date:** [January 24, 2021, 11:19am UTC](https://talk.getindico.io/t/room-booking-notification-emails/2093/1 "2021-01-24T11:19:50Z")

</div>

I have a question about the possibility of adding multiple notification emails for a room at one time from UI or from indico shell.

Thanks

---

<div class="post-metadata">

**Author:** ![ThiefMaster](https://talk.getindico.io/user_avatar/talk.getindico.io/thiefmaster/32/509_2.png) [@ThiefMaster](https://talk.getindico.io/u/ThiefMaster)\
**Post date:** [January 24, 2021, 11:21am UTC](https://talk.getindico.io/t/room-booking-notification-emails/2093/2 "2021-01-24T11:21:36Z")

</div>

It’s not very clear what exactly you are asking for… Notifications about what? A room being booked?

---

<div class="post-metadata">

**Author:** ![mohammad\_amro](https://talk.getindico.io/user_avatar/talk.getindico.io/mohammad_amro/32/385_2.png) [@mohammad\_amro](https://talk.getindico.io/u/mohammad_amro)\
**Post date:** [January 25, 2021, 8:37am UTC](https://talk.getindico.io/t/room-booking-notification-emails/2093/3 "2021-01-25T08:37:49Z")

</div>

Yes, notifications about a room being booked. I need to add multiple emails for multiple rooms at one.

 ![image](https://talk.getindico.io/uploads/default/original/1X/0825bda98a86990b184d684e06d501e08da616b2.png)

---

<div class="post-metadata">

**Author:** ![ThiefMaster](https://talk.getindico.io/user_avatar/talk.getindico.io/thiefmaster/32/509_2.png) [@ThiefMaster](https://talk.getindico.io/u/ThiefMaster)\
**Post date:** [January 25, 2021, 9:15am UTC](https://talk.getindico.io/t/room-booking-notification-emails/2093/4 "2021-01-25T09:15:20Z")

</div>

Works fine for me… and when booking that room the notification was indeed sent to all those emails.

![image](https://talk.getindico.io/uploads/default/original/1X/716473ffc6d8839110e57785ea0f3a8419f059b5.png)

---

<div class="post-metadata">

**Author:** ![mohammad\_amro](https://talk.getindico.io/user_avatar/talk.getindico.io/mohammad_amro/32/385_2.png) [@mohammad\_amro](https://talk.getindico.io/u/mohammad_amro)\
**Post date:** [January 25, 2021, 10:12am UTC](https://talk.getindico.io/t/room-booking-notification-emails/2093/5 "2021-01-25T10:12:28Z")

</div>

Thanks for your quick reply @ThiefMaster.  
My question is about how to bulk add emails to the room notification field for many rooms. we need to add 20 emails to around 60 rooms. Also, in the future, we will modify the notification emails for the existing rooms. if there a way to use API or indico shell it will be great!.

Regards

---

<div class="post-metadata">

**Author:** ![mohammad\_amro](https://talk.getindico.io/user_avatar/talk.getindico.io/mohammad_amro/32/385_2.png) [@mohammad\_amro](https://talk.getindico.io/u/mohammad_amro)\
**Post date:** [January 25, 2021, 5:08pm UTC](https://talk.getindico.io/t/room-booking-notification-emails/2093/6 "2021-01-25T17:08:34Z")

</div>

Is this possible on the current version of indico?

---

<div class="post-metadata">

**Author:** ![ThiefMaster](https://talk.getindico.io/user_avatar/talk.getindico.io/thiefmaster/32/509_2.png) [@ThiefMaster](https://talk.getindico.io/u/ThiefMaster)\
**Post date:** [January 25, 2021, 5:11pm UTC](https://talk.getindico.io/t/room-booking-notification-emails/2093/7 "2021-01-25T17:11:27Z")

</div>

Yes sure, you can do it via indico shell. Query the rooms and update the `notification_emails` attribute (a list of emails).

For example:

```python
for room in Room.query.filter(Room.id.in_([1, 2, 3, 4, 5])):
    room.notification_emails = ['foo@bar.com', 'someone@example.com']

db.session.commit()

```

---

<div class="post-metadata">

**Author:** ![mohammad\_amro](https://talk.getindico.io/user_avatar/talk.getindico.io/mohammad_amro/32/385_2.png) [@mohammad\_amro](https://talk.getindico.io/u/mohammad_amro)\
**Post date:** [January 25, 2021, 6:20pm UTC](https://talk.getindico.io/t/room-booking-notification-emails/2093/8 "2021-01-25T18:20:30Z")

</div>

Thanks!. This what I need.
