# Deactivated Account Still Receives Emails

**URL:** https://meta.discourse.org/t/deactivated-account-still-receives-emails/29672
**Category:** Feature
**Tags:** email
**Created:** [6월 5, 2015, 5:53오전 UTC](https://meta.discourse.org/t/deactivated-account-still-receives-emails/29672 "2015-06-05T05:53:31Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![markersocial](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/markersocial/32/170136_2.png) [@markersocial](https://meta.discourse.org/u/markersocial)
#### Post date: [6월 5, 2015, 5:53오전 UTC](https://meta.discourse.org/t/deactivated-account-still-receives-emails/29672/1 "2015-06-05T05:53:31Z")

</div>

I have deactivated a user account under ‘Permissions’ in Discourse. Where it states that the user will need to reactivate their email (I am hoping that this can force them to change their email and also, not attempt to email them anymore).

The user has made posts, as they had activated their account previously via email confirmation link. I can see that the system is still emailing them with updates on thread responses, despite the fact that the account/email has been deactivated. I deactivated the account in the hopes that they will not be emailed anymore as their address hard bounces in Mandrill.

Mandrill only blacklists bad email addresses for about 14 days, so depending on them 100% isn’t wise.

If this won’t be supported, is there another way of disabling discourse from attempting to mail certain users? I can manually disable them after checking the mandrill logs. I only need to disable accounts that have been activated already, but for some reason start to hard bounce later as the email address was closed or something. For initial activation emails, the mandrill suppression blacklist is sufficient.

Thanks!

---

<div class="post-metadata">

### Author: ![Mittineague](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mittineague/32/114259_2.png) [@Mittineague](https://meta.discourse.org/u/Mittineague)
#### Post date: [6월 5, 2015, 5:56오전 UTC](https://meta.discourse.org/t/deactivated-account-still-receives-emails/29672/2 "2015-06-05T05:56:19Z")

</div>

Have you gone to their Profile Preferences and unchecked all of the “email me” settings?

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [6월 5, 2015, 6:08오전 UTC](https://meta.discourse.org/t/deactivated-account-still-receives-emails/29672/3 "2015-06-05T06:08:39Z")

</div>

I guess that is a good point, if you deactivate an email that implies you do not trust it, and it should not be emailed. I guess the mailing code should have a common function all emails pass through that check this state before sending @techapj.

---

<div class="post-metadata">

### Author: ![markersocial](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/markersocial/32/170136_2.png) [@markersocial](https://meta.discourse.org/u/markersocial)
#### Post date: [6월 5, 2015, 6:22오전 UTC](https://meta.discourse.org/t/deactivated-account-still-receives-emails/29672/4 "2015-06-05T06:22:18Z")

</div>

@Mittineague - Thanks, I reactivated their accounts, impersonated them, unchecked all the ‘email me’ settings and deactivated their accounts again. Should solve this for now, although a little bit tedious.

@codinghorror - Thanks for the response. That would be perfect, even better would be to integrate with the Mandrill api to automatically deactivate hard-bounce email addresses in Discourse.

---

<div class="post-metadata">

### Author: ![dandv](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/dandv/32/169779_2.png) [@dandv](https://meta.discourse.org/u/dandv)
#### Post date: [2월 16, 2016, 9:08오전 UTC](https://meta.discourse.org/t/deactivated-account-still-receives-emails/29672/5 "2016-02-16T09:08:39Z")

</div>

> [@codinghorror](#):
>
> I guess the mailing code should have a common function all emails pass through that check this state before sending @techapj.

Seconding this for a similar use case, updating a user’s email.

Sometimes a user changes their email (and lets the community know in various ways - e.g. over social media channels) but forgets to update it in their Discourse profile. As a helpful admin, I can change the email in their Public Profile → Preferences but Discourse will still email the old address until the new one is confirmed.

A secondary problem here is that [there is no UI indication that the email address was changed](https://meta.discourse.org/t/no-ui-indication-that-a-users-email-was-changed-and-is-pending-verification/39663) and different admins won’t know that one of them had already started the process of changing the user’s email address.

---

<div class="post-metadata">

### Author: ![techAPJ](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/techapj/32/342990_2.png) [@techAPJ](https://meta.discourse.org/u/techAPJ)
#### Post date: [3월 23, 2016, 12:31오후 UTC](https://meta.discourse.org/t/deactivated-account-still-receives-emails/29672/6 "2016-03-23T12:31:24Z")

</div>

> [@codinghorror](#):
>
> if you deactivate an email that implies you do not trust it, and it should not be emailed.

This is now fixed via:

[https://github.com/discourse/discourse/commit/4e5228dc9eb0325babfd0c688a737bdde3a8d8e4](https://github.com/discourse/discourse/commit/4e5228dc9eb0325babfd0c688a737bdde3a8d8e4)

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [3월 23, 2016, 8:15오후 UTC](https://meta.discourse.org/t/deactivated-account-still-receives-emails/29672/7 "2016-03-23T20:15:37Z")

</div>

But the deactivated user can still get a new email confirmation email, yes? Just wanted to double check there…

---

<div class="post-metadata">

### Author: ![techAPJ](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/techapj/32/342990_2.png) [@techAPJ](https://meta.discourse.org/u/techAPJ)
#### Post date: [3월 23, 2016, 8:40오후 UTC](https://meta.discourse.org/t/deactivated-account-still-receives-emails/29672/8 "2016-03-23T20:40:21Z")

</div>

Yes, confirmation emails can/will be sent to deactivated user.

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [4월 20, 2016, 6:26오후 UTC](https://meta.discourse.org/t/deactivated-account-still-receives-emails/29672/9 "2016-04-20T18:26:51Z")

</div>


