# Notify users of bouncing email

**URL:** https://meta.discourse.org/t/notify-users-of-bouncing-email/88895
**Category:** Feature
**Created:** [June 1, 2018, 5:26am UTC](https://meta.discourse.org/t/notify-users-of-bouncing-email/88895 "2018-06-01T05:26:14Z")
**Posts on this page:** 17
**Page:** 1

<div class="post-metadata">

### Author: ![bartv](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/bartv/32/130052_2.png) [@bartv](https://meta.discourse.org/u/bartv)
#### Post date: [June 1, 2018, 5:26am UTC](https://meta.discourse.org/t/notify-users-of-bouncing-email/88895/1 "2018-06-01T05:26:14Z")

</div>

I’ve been manually going through bouncing emails for a while and PM-ed the affected users to ask them to check their email settings. Without fail, they did not realise they were using an old email address and updated their profile.

It would be useful if Discourse could automatically send these users such a message.

---

<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: [June 1, 2018, 9:58am UTC](https://meta.discourse.org/t/notify-users-of-bouncing-email/88895/2 "2018-06-01T09:58:22Z")

</div>

This is a good idea cc @zogstrip – we can send an automatic PM when we suddenly get a ton of bounces for an email that was known good, and the user can switch their email address to a working one on their own via user preferences.

The user won’t get any email about this of course, but they are (in theory) still logging into Discourse, and would see a Discourse PM about it.

We should put this on the 2.1 roadmap.

---

<div class="post-metadata">

### Author: ![bartv](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/bartv/32/130052_2.png) [@bartv](https://meta.discourse.org/u/bartv)
#### Post date: [June 1, 2018, 9:59am UTC](https://meta.discourse.org/t/notify-users-of-bouncing-email/88895/3 "2018-06-01T09:59:44Z")

</div>

Thanks Jeff! I suppose you can attach this to the ‘revoke email’ event that the email processor fires when someone crosses the pre-set bounce score.

---

<div class="post-metadata">

### Author: ![omarfilip](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/omarfilip/32/208019_2.png) [@omarfilip](https://meta.discourse.org/u/omarfilip)
#### Post date: [June 1, 2018, 6:02pm UTC](https://meta.discourse.org/t/notify-users-of-bouncing-email/88895/5 "2018-06-01T18:02:38Z")

</div>

> [@codinghorror](#):
>
> the user can switch their email address to a working one on their own via user preferences

If using SSO, the preferences will not be in Discourse, so an option to customize that link would be helpful.

---

<div class="post-metadata">

### Author: ![zogstrip](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/zogstrip/32/512781_2.png) [@zogstrip](https://meta.discourse.org/u/zogstrip)
#### Post date: [August 3, 2018, 2:40pm UTC](https://meta.discourse.org/t/notify-users-of-bouncing-email/88895/6 "2018-08-03T14:40:08Z")

</div>

We’ll now send a PM to users whose email address is being revoked due to too many bounces 🎉

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

---

<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: [August 4, 2018, 12:28am UTC](https://meta.discourse.org/t/notify-users-of-bouncing-email/88895/7 "2018-08-04T00:28:44Z")

</div>

Excellent, copy is

> ### Is your email address correct?
> 
> We’re sorry, but we’re having trouble reaching you via email. Our last few emails to you have all bounced back as undeliverable.
> 
> Can you make sure [your email address](https://meta.discourse.org/my/preferences/email) is valid and working? You may also wish to add our email address to your address book / contact list to improve deliverability.

---

<div class="post-metadata">

### Author: ![omarfilip](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/omarfilip/32/208019_2.png) [@omarfilip](https://meta.discourse.org/u/omarfilip)
#### Post date: [August 4, 2018, 12:39am UTC](https://meta.discourse.org/t/notify-users-of-bouncing-email/88895/8 "2018-08-04T00:39:17Z")

</div>

How will the email change work with SSO, specifically WP when `sso overrides email` is checked?

---

<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: [August 4, 2018, 1:35am UTC](https://meta.discourse.org/t/notify-users-of-bouncing-email/88895/9 "2018-08-04T01:35:38Z")

</div>

Why would it matter? The bounce count is very specific and requires email provider configuration.

---

<div class="post-metadata">

### Author: ![omarfilip](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/omarfilip/32/208019_2.png) [@omarfilip](https://meta.discourse.org/u/omarfilip)
#### Post date: [August 4, 2018, 1:58am UTC](https://meta.discourse.org/t/notify-users-of-bouncing-email/88895/10 "2018-08-04T01:58:45Z")

</div>

The link would take the user to the Discourse account where they can’t change their email: /my/preferences/email.

Can that be customized to point to the SSO provider page instead?

---

<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: [August 4, 2018, 2:07am UTC](https://meta.discourse.org/t/notify-users-of-bouncing-email/88895/11 "2018-08-04T02:07:51Z")

</div>

I see your point, but I’m not entirely sure it is possible to get this PM with SSO enabled? Something to think about when @zogstrip is back from his trip.

---

<div class="post-metadata">

### Author: ![omarfilip](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/omarfilip/32/208019_2.png) [@omarfilip](https://meta.discourse.org/u/omarfilip)
#### Post date: [August 4, 2018, 4:11am UTC](https://meta.discourse.org/t/notify-users-of-bouncing-email/88895/12 "2018-08-04T04:11:44Z")

</div>

If the text is customizable in `/admin/customize/site_texts`, then it will be fine, I think.

EDIT: I see that it is: `/admin/customize/site_texts/system_messages.email_revoked.text_body_template`, so each site with SSO should edit this to suit their specific user profile page.

---

<div class="post-metadata">

### Author: ![omarfilip](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/omarfilip/32/208019_2.png) [@omarfilip](https://meta.discourse.org/u/omarfilip)
#### Post date: [August 8, 2018, 11:35pm UTC](https://meta.discourse.org/t/notify-users-of-bouncing-email/88895/13 "2018-08-08T23:35:13Z")

</div>

The first user who got the PM sees an incorrect topic title in the message list:

 ![48%20PM](https://global.discourse-cdn.com/meta/original/3X/5/7/5706d00844299b1bb0479516e446f46ab1d7839e.png)

And the notifications list:

 ![30%20PM](https://global.discourse-cdn.com/meta/original/3X/5/0/50c836d85fc81f257c43a86cb5e4ca92a27ee7fa.png)

He is using the English interface language.

---

<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: [August 9, 2018, 12:18am UTC](https://meta.discourse.org/t/notify-users-of-bouncing-email/88895/14 "2018-08-09T00:18:43Z")

</div>

I can see the subject\_template in our locale file, can you confirm you are on latest?

---

<div class="post-metadata">

### Author: ![omarfilip](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/omarfilip/32/208019_2.png) [@omarfilip](https://meta.discourse.org/u/omarfilip)
#### Post date: [August 9, 2018, 12:20am UTC](https://meta.discourse.org/t/notify-users-of-bouncing-email/88895/15 "2018-08-09T00:20:28Z")

</div>

Currently on v2.1.0.beta4 +20, but the message was sent during a slightly older version (from 5 days ago).

---

<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: [August 9, 2018, 12:22am UTC](https://meta.discourse.org/t/notify-users-of-bouncing-email/88895/16 "2018-08-09T00:22:02Z")

</div>

That personal message is from 1 day ago, though. My guess is it predates the fix.

---

<div class="post-metadata">

### Author: ![omarfilip](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/omarfilip/32/208019_2.png) [@omarfilip](https://meta.discourse.org/u/omarfilip)
#### Post date: [August 9, 2018, 12:26am UTC](https://meta.discourse.org/t/notify-users-of-bouncing-email/88895/17 "2018-08-09T00:26:43Z")

</div>

I can see the title in v2.1.0.beta4 +20, too, so “predates fix” is likely.

---

<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: [August 18, 2018, 1:00am UTC](https://meta.discourse.org/t/notify-users-of-bouncing-email/88895/18 "2018-08-18T01:00:14Z")

</div>

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