# no\_email\_found is still a problem

**URL:** <https://meta.discourse.org/t/no-email-found-is-still-a-problem/39595>\
**Category:** Bug\
**Created:** [2월 15, 2016, 11:36오전 UTC](https://meta.discourse.org/t/no-email-found-is-still-a-problem/39595 "2016-02-15T11:36:35Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sander78](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sander78/32/296615_2.png) [@Sander78](https://meta.discourse.org/u/Sander78)\
**Post date:** [2월 15, 2016, 11:36오전 UTC](https://meta.discourse.org/t/no-email-found-is-still-a-problem/39595/1 "2016-02-15T11:36:35Z")

</div>

@zogstrip, I still have many mails not being sent because of `no_email_found` as reported earlier here:

> [@Mails are no longer sent due to 'no\_email\_found' and 'message.to is blank'](https://meta.discourse.org/t/mails-are-no-longer-sent-due-to-no-email-found-and-message-to-is-blank/38944/2):
>
> Might be my fault. Could you give me more information to help debug this issue? I’ll have a look first thing tomorrow.

---

<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:** [2월 15, 2016, 11:48오전 UTC](https://meta.discourse.org/t/no-email-found-is-still-a-problem/39595/2 "2016-02-15T11:48:18Z")

</div>

1/ Are you running latest?

2/ What types of emails are not being sent?

---

<div class="post-metadata">

**Author:** ![Sander78](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sander78/32/296615_2.png) [@Sander78](https://meta.discourse.org/u/Sander78)\
**Post date:** [2월 15, 2016, 1:33오후 UTC](https://meta.discourse.org/t/no-email-found-is-still-a-problem/39595/3 "2016-02-15T13:33:01Z")

</div>

Yes, running latest.

Types are `digest` and `user_mentioned` (there are no other types so far). However, mails to me (admin) do get through. This has been happening starting 28 January. The day before everything was fine.

---

<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:** [2월 15, 2016, 2:57오후 UTC](https://meta.discourse.org/t/no-email-found-is-still-a-problem/39595/4 "2016-02-15T14:57:10Z")

</div>

I am also seeing A LOT of this.

 ![](https://global.discourse-cdn.com/meta/original/3X/1/f/1f907690b622b2d8a829fa2d3236edcf2d27664e.png)

---

<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:** [2월 15, 2016, 4:54오후 UTC](https://meta.discourse.org/t/no-email-found-is-still-a-problem/39595/5 "2016-02-15T16:54:35Z")

</div>

I can definitely see that happening in production but not in development mode. So I added more logs to try to identify the source of the error

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

Can you guys update and ping me in ~ 6 hours (or until the next digest job) with more info?

---

<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:** [2월 16, 2016, 2:31오후 UTC](https://meta.discourse.org/t/no-email-found-is-still-a-problem/39595/6 "2016-02-16T14:31:24Z")

</div>

12+ hours on, I haven’t seen the issue again. I’ll keep checking.

---

<div class="post-metadata">

**Author:** ![Sander78](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sander78/32/296615_2.png) [@Sander78](https://meta.discourse.org/u/Sander78)\
**Post date:** [2월 17, 2016, 10:16오전 UTC](https://meta.discourse.org/t/no-email-found-is-still-a-problem/39595/7 "2016-02-17T10:16:41Z")

</div>

@zogstrip, it happened many times again. No idea where you logged it, though. But you can use your admin login to see for yourself on my instance, if you like.

---

<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:** [2월 17, 2016, 4:34오후 UTC](https://meta.discourse.org/t/no-email-found-is-still-a-problem/39595/8 "2016-02-17T16:34:11Z")

</div>

Thanks for your cooperation, I figured it out 😉 Turns out that when there are not enough topics to send a digest we pass a “`NullMail`” object to the “`EmailSender`” class. It didn’t help that the API changed in rails `4.2.0`…

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

---

<div class="post-metadata">

**Author:** ![Sander78](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sander78/32/296615_2.png) [@Sander78](https://meta.discourse.org/u/Sander78)\
**Post date:** [2월 17, 2016, 4:35오후 UTC](https://meta.discourse.org/t/no-email-found-is-still-a-problem/39595/9 "2016-02-17T16:35:39Z")

</div>

Great that you found that out! But… it also happens with `user_posted`. Does your fix fix that as well?

---

<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:** [2월 17, 2016, 4:36오후 UTC](https://meta.discourse.org/t/no-email-found-is-still-a-problem/39595/10 "2016-02-17T16:36:42Z")

</div>

I only checked for `digest`, checking now for `user_posted` (it might be another issue, but with the same result).

---

<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:** [2월 17, 2016, 4:44오후 UTC](https://meta.discourse.org/t/no-email-found-is-still-a-problem/39595/11 "2016-02-17T16:44:15Z")

</div>

Not sure how to reproduce for `user_posted`. Might have been already fixed. Let me know if it happens again.

---

<div class="post-metadata">

**Author:** ![Sander78](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sander78/32/296615_2.png) [@Sander78](https://meta.discourse.org/u/Sander78)\
**Post date:** [2월 22, 2016, 10:48오후 UTC](https://meta.discourse.org/t/no-email-found-is-still-a-problem/39595/12 "2016-02-22T22:48:50Z")

</div>

I think they’ve all been fixed. I just saw a whole bunch of `mailing_list` and `user_posted` mails go out successfully. No `digests` yet, btw…

---

<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:** [2월 24, 2016, 10:50오후 UTC](https://meta.discourse.org/t/no-email-found-is-still-a-problem/39595/13 "2016-02-24T22:50:08Z")

</div>

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