# Digest/Activity Summary emails not sending for users even though all conditions are met (Discourse 3.6)

**URL:** <https://meta.discourse.org/t/digest-activity-summary-emails-not-sending-for-users-even-though-all-conditions-are-met-discourse-3-6/385651>\
**Category:** Product Support\
**Tags:** email, activity-summary\
**Created:** [October 15, 2025, 3:43am UTC](https://meta.discourse.org/t/digest-activity-summary-emails-not-sending-for-users-even-though-all-conditions-are-met-discourse-3-6/385651 "2025-10-15T03:43:02Z")\
**Posts on this page:** 1\
**Showing post:** 8

<div class="post-metadata">

**Author:** ![jahan\_gagan](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jahan_gagan/32/501948_2.png) [@jahan\_gagan](https://meta.discourse.org/u/jahan_gagan)\
**Post date:** [October 20, 2025, 8:58pm UTC](https://meta.discourse.org/t/digest-activity-summary-emails-not-sending-for-users-even-though-all-conditions-are-met-discourse-3-6/385651/8 "2025-10-20T20:58:38Z")

</div>

You can try below rails console query, the active users who have email digests enabled and are due for their next digest email

```plaintext
User.joins(:user_option)
  .where("user_options.email_digests = ?", true)
  .where("users.suspended_at IS NULL")
  .where("COALESCE(users.last_emailed_at, users.created_at) < (NOW() - INTERVAL '1 minute' * user_options.digest_after_minutes)")
  .count

```

---

_[View the full topic](https://meta.discourse.org/t/digest-activity-summary-emails-not-sending-for-users-even-though-all-conditions-are-met-discourse-3-6/385651)._
