# Disabling all emails except those registration related?

**URL:** https://meta.discourse.org/t/disabling-all-emails-except-those-registration-related/46971
**Category:** Support
**Created:** [July 7, 2016, 8:43pm UTC](https://meta.discourse.org/t/disabling-all-emails-except-those-registration-related/46971 "2016-07-07T20:43:22Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![clay](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/clay/32/102156_2.png) [@clay](https://meta.discourse.org/u/clay)
#### Post date: [July 7, 2016, 8:43pm UTC](https://meta.discourse.org/t/disabling-all-emails-except-those-registration-related/46971/1 "2016-07-07T20:43:22Z")

</div>

I have a client that wants to use Discourse on a project but cannot have Discourse emails coming through their email system for legal reasons. The instance of Discourse is going to be very heavily moderated/administered by some people in charge of the project. It seems there are two possible solutions here:

- Admins create the accounts for the users and send them the credentials
- Users receive **only** registration and password change emails and nothing else.

Right now, it doesn’t seem like either of those situations is possible. Am I correct in that assumption? Is there another way to establish and manage this community?

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [July 7, 2016, 10:58pm UTC](https://meta.discourse.org/t/disabling-all-emails-except-those-registration-related/46971/2 "2016-07-07T22:58:17Z")

</div>

You could build a plugin that patches that area and makes the email notifications a no-op

Or you could totally disable emails and build a custom frontend for account management using the API

There is no built in way

---

<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: [July 7, 2016, 11:48pm UTC](https://meta.discourse.org/t/disabling-all-emails-except-those-registration-related/46971/3 "2016-07-07T23:48:36Z")

</div>

SSO ftw.

Disable all emails, and set up a simple rails / Django app for user management, and reuse the SSO code for those frameworks.

I really can’t say how awesome [discourse SSO](https://meta.discourse.org/t/13045?silent=true) is.

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [July 7, 2016, 11:56pm UTC](https://meta.discourse.org/t/disabling-all-emails-except-those-registration-related/46971/4 "2016-07-07T23:56:39Z")

</div>

Yes, I totally endorse that, on second thought that is the best thing to do here instead of butchering Discourse internals with monkey patches.

---

<div class="post-metadata">

### Author: ![clay](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/clay/32/102156_2.png) [@clay](https://meta.discourse.org/u/clay)
#### Post date: [July 8, 2016, 2:32am UTC](https://meta.discourse.org/t/disabling-all-emails-except-those-registration-related/46971/5 "2016-07-08T02:32:43Z")

</div>

> [@Falco](#):
>
> Disable all emails, and set up a simple rails / Django app for user management, and reuse the SSO code for those frameworks.

Ok, awesome. Do you know if there’s any publicly available example of a SSO source for Discourse? A Rails or Django app that’s ready to go, so to speak? I’ve worked in both, but if there’s a “perfect working example” out there that I can clone and use, that would be super handy. 😃

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [July 8, 2016, 2:41am UTC](https://meta.discourse.org/t/disabling-all-emails-except-those-registration-related/46971/6 "2016-07-08T02:41:07Z")

</div>

The topic you are looking for is ➡

> [@Setup DiscourseConnect - Official Single-Sign-On for Discourse (sso)](https://meta.discourse.org/t/official-single-sign-on-for-discourse/13045):
>
> [DiscourseConnect](https://meta.discourse.org/t/13045?silent=true) is a core Discourse feature that allows you to configure “Single Sign-On (SSO)” to completely outsource all user registration and login from Discourse to another site. Offered to our [pro, business and enterprise hosting customers](https://discourse.org/pricing). information_source (Feb 2021) ‘[Discourse SSO](https://meta.discourse.org/t/13045?silent=true)’ is now ‘[DiscourseConnect](https://meta.discourse.org/t/13045?silent=true)’. If you are running an old version of Discourse, the settings below will be named sso\_... rather than discourse\_connect\_... The Problem Many sites wishing to integrate wit…

---

<div class="post-metadata">

### Author: ![JammyDodger](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jammydodger/32/254611_2.png) [@JammyDodger](https://meta.discourse.org/u/JammyDodger)
#### Post date: [June 8, 2024, 12:45pm UTC](https://meta.discourse.org/t/disabling-all-emails-except-those-registration-related/46971/7 "2024-06-08T12:45:31Z")

</div>

This topic was automatically closed after 2892 days. New replies are no longer allowed.
