# Getting E-Mails from inactive users

**URL:** <https://meta.discourse.org/t/getting-e-mails-from-inactive-users/45961>\
**Category:** Product Support\
**Created:** [17 يونيو 2016، 4:57م UTC](https://meta.discourse.org/t/getting-e-mails-from-inactive-users/45961 "2016-06-17T16:57:12Z")\
**Posts on this page:** 1\
**Showing post:** 10

<div class="post-metadata">

**Author:** ![fefrei](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/fefrei/32/119538_2.png) [@fefrei](https://meta.discourse.org/u/fefrei)\
**Post date:** [21 يونيو 2016، 9:22ص UTC](https://meta.discourse.org/t/getting-e-mails-from-inactive-users/45961/10 "2016-06-21T09:22:16Z")

</div>

Thanks a lot!

In the meantime, for anyone who wants to try the same approach, here’s what I ran on the rails console (`rails c` inside the container):

```ruby
User.where({ active: false }).update_all({ staged: true })

```

---

_[View the full topic](https://meta.discourse.org/t/getting-e-mails-from-inactive-users/45961)._
