# 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:** [9 Ottobre 2016, 12:24pm UTC](https://meta.discourse.org/t/unable-to-send-mails-using-discourse/51296 "2016-10-09T12:24:12Z")\
**Posts on this page:** 1\
**Showing post:** 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:** [9 Ottobre 2016, 12:24pm 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.

---

_[View the full topic](https://meta.discourse.org/t/unable-to-send-mails-using-discourse/51296)._
