# Unable to send mails using Discourse

**URL:** https://meta.discourse.org/t/unable-to-send-mails-using-discourse/51296
**Category:** Self-hosting
**Tags:** email
**Created:** [10월 9, 2016, 12:24오후 UTC](https://meta.discourse.org/t/unable-to-send-mails-using-discourse/51296 "2016-10-09T12:24:12Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![ceeaim](https://avatars.discourse-cdn.com/v4/letter/c/a87d85/32.png) [@ceeaim](https://meta.discourse.org/u/ceeaim)
#### Post date: [10월 9, 2016, 12:24오후 UTC](https://meta.discourse.org/t/unable-to-send-mails-using-discourse/51296/1 "2016-10-09T12:24:12Z")

</div>

I have docker installation of discourse from [this article](https://serversforhackers.com/video/installing-discourse-with-docker). Discourse is working fine but I am unable to send mails.

my settings are.

> ## TODO: The mailserver this Discourse instance will use
> 
> DISCOURSE\_SMTP\_ADDRESS: [smtp.zoho.com](http://smtp.zoho.com) # (mandatory)  
> DISCOURSE\_SMTP\_PORT: 587 # (optional)  
> DISCOURSE\_SMTP\_USER\_NAME: xxxxx@xxxxxx.in # (optional)  
> DISCOURSE\_SMTP\_PASSWORD: xxxxxxxxx # (optional)
> 
> ##

when I check production logs it shows Unprocessable entry.

> Started POST “/admin/email/test” for 106.51.227.84 at 2016-10-09 10:36:28 +0000  
> Processing by Admin::EmailController#test as _/_  
> Parameters: {“email\_address”=\>“[geekceeaim@gmail.com](mailto:geekceeaim@gmail.com)”}

> Sent mail to [geekceeaim@gmail.com](mailto:geekceeaim@gmail.com) (1430.7ms)  
> Completed 422 Unprocessable Entity in 1871ms (Views: 0.7ms | ActiveRecord: 1.1ms)

on sideKiq all email error queue have following logs.

> Jobs::CriticalUserEmail

> Jobs::HandledExceptionWrapper: Wrapped Net::SMTPAuthenticationError: 435 4.7.8 Error: authentication failed:

I am using digitalocean also I tried with ZOHO/mandrillapp smtp servers.

Thanks in advance.

---

<div class="post-metadata">

### Author: ![mpalmer](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mpalmer/32/45740_2.png) [@mpalmer](https://meta.discourse.org/u/mpalmer)
#### Post date: [10월 10, 2016, 12:26오전 UTC](https://meta.discourse.org/t/unable-to-send-mails-using-discourse/51296/2 "2016-10-10T00:26:13Z")

</div>

> [@ceeaim](#):
>
> Error: authentication failed

There you are, then. Your credentials are wrong.

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [10월 10, 2016, 3:45오전 UTC](https://meta.discourse.org/t/unable-to-send-mails-using-discourse/51296/3 "2016-10-10T03:45:22Z")

</div>

> [@mpalmer](#):
>
> There you are, then. Your credentials are wrong.

That is to say, there is something wrong with the username and /or password (or, perhaps the address/host name, but that’s pretty unlikely).

---

<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: [6월 8, 2024, 12:45오후 UTC](https://meta.discourse.org/t/unable-to-send-mails-using-discourse/51296/4 "2024-06-08T12:45:13Z")

</div>

이 주제는 2799일 후 자동으로 닫혔습니다. 더 이상 새 답글을 작성할 수 없습니다.
