# Default email digest frequency

**URL:** <https://meta.discourse.org/t/default-email-digest-frequency/190428>\
**Category:** Feature\
**Tags:** activity-summary\
**Created:** [May 14, 2021, 5:06pm UTC](https://meta.discourse.org/t/default-email-digest-frequency/190428 "2021-05-14T17:06:18Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![pacharanero](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pacharanero/32/500583_2.png) [@pacharanero](https://meta.discourse.org/u/pacharanero)\
**Post date:** [May 16, 2021, 11:25am UTC](https://meta.discourse.org/t/default-email-digest-frequency/190428/6 "2021-05-16T11:25:45Z")

</div>

> [@nathank](#):
>
> You have to force a change via the Rails console. My fellow admin @pacharanero did this, and he might be able to drop the code required in here as I can’t find it documented anywhere

I’m not sure it really worked, actually. I changed it (back in 2015, according to our Admin log) on the Rails console using

```ruby
SiteSetting.default_email_digest_frequency=<DESIRED_EMAIL_DIGEST_FREQUENCY_MINUTES>

```

Back then, there was no validation of that input. But it seems there is now, and the input of anything that is not in the enum results in

```ruby
Discourse::InvalidParameters: value
from /var/www/discourse/lib/site_settings/type_supervisor.rb:207:in `validate_value'

```

That’s probably a good thing in terms of Discourse code quality and stability. But I do get the OP’s point about wanting better options here. The 30 and 60 minutes options seem odd.

---

_[View the full topic](https://meta.discourse.org/t/default-email-digest-frequency/190428)._
