# الرسائل الإلكترونية تعمل على ما يبدو لكنها لا تُرسل فعليًا

**URL:** https://meta.discourse.org/t/emails-are-apparently-working-but-they-are-not-really-sent/98082
**Category:** Self-hosting
**Created:** [26 سبتمبر 2018، 7:55ص UTC](https://meta.discourse.org/t/emails-are-apparently-working-but-they-are-not-really-sent/98082 "2018-09-26T07:55:38Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Alex3](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/alex3/32/111918_2.png) [@Alex3](https://meta.discourse.org/u/Alex3)
#### Post date: [26 سبتمبر 2018، 7:55ص UTC](https://meta.discourse.org/t/emails-are-apparently-working-but-they-are-not-really-sent/98082/1 "2018-09-26T07:55:38Z")

</div>

Hi:  
I have send some emails (registration, password forgot and even test mails) and all seems to be working.

In console:  
Started GET “/admin/email/sent.json?offset=0&_=1537948167257" for 2.139.160.242 at 2018-09-26 07:51:42 +0000  
Processing by Admin::EmailController#sent as JSON  
Parameters: {“offset”=\>“0”, "_”=\>“1537948167257”}  
Completed 200 OK in 39ms (Views: 0.2ms | ActiveRecord: 10.7ms)

And in web:

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

But they are not reaching inboxes (not even in spam folder).

I have tried with 4 different mailboxes (gmail, yahoo, and 2 POP accounts in different ISP’s). I don’t believe is something on “the other side”, but Discourse …

Any help ?

Thank you !

---

<div class="post-metadata">

### Author: ![itsbhanusharma](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/itsbhanusharma/32/180717_2.png) [@itsbhanusharma](https://meta.discourse.org/u/itsbhanusharma)
#### Post date: [26 سبتمبر 2018، 10:02ص UTC](https://meta.discourse.org/t/emails-are-apparently-working-but-they-are-not-really-sent/98082/2 "2018-09-26T10:02:02Z")

</div>

What email provider do You use to send emails?

Do they present any logs? If so, do the logs read any errors?

---

<div class="post-metadata">

### Author: ![Alex3](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/alex3/32/111918_2.png) [@Alex3](https://meta.discourse.org/u/Alex3)
#### Post date: [26 سبتمبر 2018، 10:19ص UTC](https://meta.discourse.org/t/emails-are-apparently-working-but-they-are-not-really-sent/98082/3 "2018-09-26T10:19:32Z")

</div>

The SMTP logs error led me to this:

> [@Troubleshoot email on a new Discourse install](https://meta.discourse.org/t/troubleshoot-email-on-a-new-discourse-install/16326/2):
>
> ## Is the email domain correct?
> 
> The default email from address is based on the install domain plus subdomain, so if your URL is `discourse.example.com` it will be:
> 
> `noreply@discourse.example.com`
> 
> But if your mail provider is expecting:
> 
> `noreply@example.com`
> 
> … you may have problems! To get around this, edit and uncomment this line in `app.yml`
> 
> ```plaintext
> ## If you want to set the 'From' email address for your first registration, uncomment and change:
> #- exec: rails r "SiteSetting.notification_email='noreply@example.com'"
> ## After getting the first signup email, re-comment the line. It only needs to run once.
> 
> ```
> 
> You’ll need to issue a rebuild after uncommenting the above line and setting the from email address as required.
> 
> You can also change this from the command line, if needed:
> 
> ```plaintext
> ./launcher enter app
> rails r "SiteSetting.notification_email = 'discourse@yoursite.com'"
> exit
> 
> ```

Thank you

---

<div class="post-metadata">

### Author: ![itsbhanusharma](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/itsbhanusharma/32/180717_2.png) [@itsbhanusharma](https://meta.discourse.org/u/itsbhanusharma)
#### Post date: [26 سبتمبر 2018، 10:20ص UTC](https://meta.discourse.org/t/emails-are-apparently-working-but-they-are-not-really-sent/98082/4 "2018-09-26T10:20:51Z")

</div>

Do you mind sharing your logs instead of troubleshoot article?
