# How do I disable outgoing email partially?

**URL:** https://meta.discourse.org/t/how-do-i-disable-outgoing-email-partially/146598
**Category:** Self-hosting
**Created:** [April 2, 2020, 5:15pm UTC](https://meta.discourse.org/t/how-do-i-disable-outgoing-email-partially/146598 "2020-04-02T17:15:02Z")
**Posts on this page:** 20
**Page:** 1

<div class="post-metadata">

### Author: ![Gulshan\_Kumar](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/gulshan_kumar/32/119562_2.png) [@Gulshan\_Kumar](https://meta.discourse.org/u/Gulshan_Kumar)
#### Post date: [April 2, 2020, 5:15pm UTC](https://meta.discourse.org/t/how-do-i-disable-outgoing-email-partially/146598/1 "2020-04-02T17:15:02Z")

</div>

Hello!

I want Discourse to send outgoing e-mail only for

- resetting password
- nothing else.

Why? Most on going notifications are already covered by Push Notifications. Therefore, it’s not important.

Thanks & Regards,  
Gulshan

---

<div class="post-metadata">

### Author: ![tobiaseigen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tobiaseigen/32/539204_2.png) [@tobiaseigen](https://meta.discourse.org/u/tobiaseigen)
#### Post date: [April 2, 2020, 5:41pm UTC](https://meta.discourse.org/t/how-do-i-disable-outgoing-email-partially/146598/2 "2020-04-02T17:41:46Z")

</div>

I’ve looked into this before but there is no plan that I know of for it. You can disable all except for staff actions only, but not disable all except for password resets.

The only solution for you would be to bulk change the user notification preferences for all users so they are not sent the email summary and are not notified when mentioned or messaged etc. Like screenshot below. But if they decided later they wanted to change this you would not be able to stop them.

 ![Screen Shot 2020-04-02 at 10.40.26 AM](https://global.discourse-cdn.com/meta/original/3X/a/d/ad222c9fa15efdae0ce8483bd2067b33cdc0607b.png)

---

<div class="post-metadata">

### Author: ![Gulshan\_Kumar](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/gulshan_kumar/32/119562_2.png) [@Gulshan\_Kumar](https://meta.discourse.org/u/Gulshan_Kumar)
#### Post date: [April 2, 2020, 6:02pm UTC](https://meta.discourse.org/t/how-do-i-disable-outgoing-email-partially/146598/3 "2020-04-02T18:02:45Z")

</div>

To limit digest  
 ![image](https://global.discourse-cdn.com/meta/original/3X/f/a/fa51b8a07e7a573820a4a5e1565e31817994902a.png)

To limit frequent e-mail

 ![image](https://global.discourse-cdn.com/meta/original/3X/4/c/4c4fc44c0ac7b1271d65e44377d12a1861dde2f3.png)

Would be helpful?

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [April 2, 2020, 6:11pm UTC](https://meta.discourse.org/t/how-do-i-disable-outgoing-email-partially/146598/4 "2020-04-02T18:11:17Z")

</div>

Brilliant! You can set `email time window mins` to 2000000000, which is a pretty long time. It’s the same max for `personal email time window seconds`, but that’s still a pretty long time. Your current users will all be dead by then (well, not for the PMS, some will probably be alive in 63 years). And you can just disable digests.

---

<div class="post-metadata">

### Author: ![tobiaseigen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tobiaseigen/32/539204_2.png) [@tobiaseigen](https://meta.discourse.org/u/tobiaseigen)
#### Post date: [April 2, 2020, 6:15pm UTC](https://meta.discourse.org/t/how-do-i-disable-outgoing-email-partially/146598/5 "2020-04-02T18:15:07Z")

</div>

no those are unrelated.

if this is a new site, you can set default user preferences via the admin settings.

if not, you can do it via the rails console. [Edit a user preference for everyone or a subset of users](https://meta.discourse.org/t/edit-a-user-setting-for-all-discourse-users/25162)

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [April 2, 2020, 6:16pm UTC](https://meta.discourse.org/t/how-do-i-disable-outgoing-email-partially/146598/6 "2020-04-02T18:16:40Z")

</div>

> [@tobiaseigen](#):
>
> no those are unrelated.

Won’t `email time window` wait that long before sending a notification email? I think that changing those settings and disabling summary emails would do it.

---

<div class="post-metadata">

### Author: ![Gulshan\_Kumar](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/gulshan_kumar/32/119562_2.png) [@Gulshan\_Kumar](https://meta.discourse.org/u/Gulshan_Kumar)
#### Post date: [April 2, 2020, 6:17pm UTC](https://meta.discourse.org/t/how-do-i-disable-outgoing-email-partially/146598/7 "2020-04-02T18:17:37Z")

</div>

This is two years old site. I feel most users who want to be active they come automatically. Rest from search engine.

---

<div class="post-metadata">

### Author: ![tobiaseigen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tobiaseigen/32/539204_2.png) [@tobiaseigen](https://meta.discourse.org/u/tobiaseigen)
#### Post date: [April 2, 2020, 6:29pm UTC](https://meta.discourse.org/t/how-do-i-disable-outgoing-email-partially/146598/8 "2020-04-02T18:29:07Z")

</div>

> [@pfaffman](#):
>
> Won’t `email time window` wait that long before sending a notification email?

I think that’s certainly an idea worth trying.. but it seems like an abuse of that setting. 🙂

Question: if a mentioned user who would be emailed is online, do they get notified immediately or does it wait for the ninja edit window time to elapse?

> [@Gulshan\_Kumar](#):
>
> I feel most users who want to be active they come automatically.

I don’t really understand how they will know to come if they are not getting email.

---

<div class="post-metadata">

### Author: ![Stephen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/stephen/32/95011_2.png) [@Stephen](https://meta.discourse.org/u/Stephen)
#### Post date: [April 2, 2020, 6:30pm UTC](https://meta.discourse.org/t/how-do-i-disable-outgoing-email-partially/146598/9 "2020-04-02T18:30:03Z")

</div>

Are you not using reply by email?

---

<div class="post-metadata">

### Author: ![Gulshan\_Kumar](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/gulshan_kumar/32/119562_2.png) [@Gulshan\_Kumar](https://meta.discourse.org/u/Gulshan_Kumar)
#### Post date: [April 2, 2020, 6:30pm UTC](https://meta.discourse.org/t/how-do-i-disable-outgoing-email-partially/146598/10 "2020-04-02T18:30:33Z")

</div>

We do not prefer e-mail reply but using web medium only.

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [April 2, 2020, 6:32pm UTC](https://meta.discourse.org/t/how-do-i-disable-outgoing-email-partially/146598/11 "2020-04-02T18:32:43Z")

</div>

> [@tobiaseigen](#):
>
> I don’t really understand how they will know to come if they are not getting email.

Right. I am pretty sure that many users return to the site because they get email notifications of something happening on the site that they care about. Discourse does a good job of guessing what people care about. I think it’s a bad idea not to send email notifications. And I’d assumed that it would be really hard, **because it’s such a bad idea** , but maxing out those notification windows will do it, I think. 😉

---

<div class="post-metadata">

### Author: ![tobiaseigen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tobiaseigen/32/539204_2.png) [@tobiaseigen](https://meta.discourse.org/u/tobiaseigen)
#### Post date: [April 2, 2020, 6:40pm UTC](https://meta.discourse.org/t/how-do-i-disable-outgoing-email-partially/146598/12 "2020-04-02T18:40:25Z")

</div>

I do think there are sometimes circumstances when you want to turn off email notifications, even temporarily while setting up new communities or testing, while still allowing members to log in and use the forum. I have a case for that right now, in fact. I’ve been slow to set up a neighborhood forum to replace a yahoo group because I have already imported everybody but don’t want to start sending email notifications before turning off the yahoo group.

I wonder if a plugin could add an option to the `disable emails` admin setting for e.g. “reset passwords only”.

 ![Screen Shot 2020-04-02 at 11.37.59 AM](https://global.discourse-cdn.com/meta/original/3X/9/f/9ffe9564f5f96d9cdd3e7f7c709cb291133ba26e.png)

---

<div class="post-metadata">

### Author: ![Gulshan\_Kumar](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/gulshan_kumar/32/119562_2.png) [@Gulshan\_Kumar](https://meta.discourse.org/u/Gulshan_Kumar)
#### Post date: [April 2, 2020, 6:44pm UTC](https://meta.discourse.org/t/how-do-i-disable-outgoing-email-partially/146598/13 "2020-04-02T18:44:01Z")

</div>

Disablinge-mails with “no” settings return this notice which can make user afraid.

```plaintext
All outgoing email has been globally disabled by an administrator. No email notifications of any kind will be sent.

```

So I would like to keep a balanced solution as minimal possible, limited to critical e-mail and some weekly digest e-mail for visitors who returned in past 60 days, before it was 1 year.

---

<div class="post-metadata">

### Author: ![tobiaseigen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tobiaseigen/32/539204_2.png) [@tobiaseigen](https://meta.discourse.org/u/tobiaseigen)
#### Post date: [April 2, 2020, 6:46pm UTC](https://meta.discourse.org/t/how-do-i-disable-outgoing-email-partially/146598/14 "2020-04-02T18:46:07Z")

</div>

Well then my advice at the top is your answer. Bulk change user prefs to set their notifications to not send email.

---

<div class="post-metadata">

### Author: ![Stephen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/stephen/32/95011_2.png) [@Stephen](https://meta.discourse.org/u/Stephen)
#### Post date: [April 2, 2020, 6:46pm UTC](https://meta.discourse.org/t/how-do-i-disable-outgoing-email-partially/146598/15 "2020-04-02T18:46:17Z")

</div>

> [@tobiaseigen](#):
>
> even temporarily while setting up new communities or testing

I don’t agree with this, you need to know email is working and you need to understand the impact on email when your community goes live.

We have had a few support topics here on this very matter, people migrate quickly, don’t test email at all, then end up sending thousands of messages. All of a sudden we’re the bad guys because their tests ignored it.

It’s why tools like [mailhog](https://github.com/mailhog/MailHog) exists, and it’s a vital part of my migration toolkit. Best of all you can run it in Docker, so you can spin it up/down on-demand. You can see everything arrive in a browser, and if you want to you can release messages to real SMTP servers to be delivered.

> [@Gulshan\_Kumar](#):
>
> Disablinge-mails with “no” settings return this notice which can make user afraid.

For good reason, Discourse can’t be used in that state, it’s designed to be temporary, so the message is very obvious. No emails are sent, including password reset requests.

---

<div class="post-metadata">

### Author: ![Gulshan\_Kumar](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/gulshan_kumar/32/119562_2.png) [@Gulshan\_Kumar](https://meta.discourse.org/u/Gulshan_Kumar)
#### Post date: [April 2, 2020, 6:46pm UTC](https://meta.discourse.org/t/how-do-i-disable-outgoing-email-partially/146598/16 "2020-04-02T18:46:52Z")

</div>

My main goal of doing this is not repeat “Push notifications” content with e-mail.

I want my user to feel greeted, happy with important e-mail notifications.

---

<div class="post-metadata">

### Author: ![Stephen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/stephen/32/95011_2.png) [@Stephen](https://meta.discourse.org/u/Stephen)
#### Post date: [April 2, 2020, 6:48pm UTC](https://meta.discourse.org/t/how-do-i-disable-outgoing-email-partially/146598/17 "2020-04-02T18:48:53Z")

</div>

Push notifications are only sent if a user has been active in the last 10 minutes.

Email notifications are only sent if the user hasn’t been active for 10 minutes:

 ![Screen Shot 2020-04-02 at 11.50.11 AM](https://global.discourse-cdn.com/meta/original/3X/c/b/cb07890b90e099eb8a688aa23a2ad5ac3715e560.png)

They shouldn’t double up at all, if they are it’s because you’ve changed your preferences.

---

<div class="post-metadata">

### Author: ![tobiaseigen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tobiaseigen/32/539204_2.png) [@tobiaseigen](https://meta.discourse.org/u/tobiaseigen)
#### Post date: [April 2, 2020, 6:57pm UTC](https://meta.discourse.org/t/how-do-i-disable-outgoing-email-partially/146598/18 "2020-04-02T18:57:36Z")

</div>

This is good advice - thanks! Maybe the answer to my own use case anyway is to bulk deactivate the imported users so only users who decide to come and log in are ever notified about replies to past and current discussions.

---

<div class="post-metadata">

### Author: ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)
#### Post date: [April 3, 2020, 4:50am UTC](https://meta.discourse.org/t/how-do-i-disable-outgoing-email-partially/146598/19 "2020-04-03T04:50:28Z")

</div>

> [@Stephen](#):
>
> Push notifications are only sent if a user has been active in the last 10 minutes.

I’m not sure this is the case 🤔

---

<div class="post-metadata">

### Author: ![Stephen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/stephen/32/95011_2.png) [@Stephen](https://meta.discourse.org/u/Stephen)
#### Post date: [April 3, 2020, 4:53am UTC](https://meta.discourse.org/t/how-do-i-disable-outgoing-email-partially/146598/20 "2020-04-03T04:53:15Z")

</div>

I should have clarified that I meant browser notifications, CDCK-hosted notifications to the app arrive regardless.

I don’t think I ever see them double up between app and desktop, but maybe I’m not attentive enough!

[Next page](https://meta.discourse.org/t/how-do-i-disable-outgoing-email-partially/146598.md?page=2)
