# Daily limits for outgoing mails per user

**URL:** <https://meta.discourse.org/t/daily-limits-for-outgoing-mails-per-user/41458>\
**Category:** Feature\
**Tags:** feedback\
**Created:** [2016 年3 月 23 日 04:37 UTC](https://meta.discourse.org/t/daily-limits-for-outgoing-mails-per-user/41458 "2016-03-23T04:37:30Z")\
**Posts on this page:** 1\
**Showing post:** 33

<div class="post-metadata">

作者： ![cpradio](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/cpradio/32/4970_2.png) [@cpradio](https://meta.discourse.org/u/cpradio)\
发布日期： [2016 年3 月 28 日 22:29 UTC](https://meta.discourse.org/t/daily-limits-for-outgoing-mails-per-user/41458/33 "2016-03-28T22:29:55Z")

</div>

Try this using the [Data Explorer](https://meta.discourse.org/t/32566?silent=true) plugin

```plaintext
SELECT user_id, date_trunc('day', created_at) AS date_sent, COUNT(*) AS total
  FROM email_logs 
  WHERE skipped = false
  GROUP BY user_id, date_sent
  ORDER BY total DESC

```

[emails-by-person.dcquery.json.txt](https://global.discourse-cdn.com/meta/original/3X/c/2/c2502e6a225fa3608e6c4ed3a93ca3687bdc6d6f.txt) (286 Bytes)

**Edit:** Updated it to use date\_trunc  
**Edit 2:** Added skipped check

---

_[View the full topic](https://meta.discourse.org/t/daily-limits-for-outgoing-mails-per-user/41458)._
