# Sending emails not working

**URL:** <https://meta.discourse.org/t/sending-emails-not-working/149883>\
**Category:** Self-hosting\
**Created:** [April 30, 2020, 9:24am UTC](https://meta.discourse.org/t/sending-emails-not-working/149883 "2020-04-30T09:24:22Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![Kristian](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/kristian/32/178775_2.png) [@Kristian](https://meta.discourse.org/u/Kristian)\
**Post date:** [April 30, 2020, 9:24am UTC](https://meta.discourse.org/t/sending-emails-not-working/149883/1 "2020-04-30T09:24:22Z")

</div>

My digitalocean discourse droplet can’t send mails. The error I get is:

```
Delivered mail d8f9bf03-a3ce-4b42-8226-fc4f40a9c724@foo.barbar.com (5099.4ms)

Job exception: 504 5.7.4 Unrecognized authentication type [BL0PR0102CA0036.prod.exchangelabs.com]

```

My settings are:

```
  DISCOURSE_SMTP_ADDRESS: smtp.office365.com
  DISCOURSE_SMTP_PORT: 587
  DISCOURSE_SMTP_USER_NAME: foo@bar.com
  DISCOURSE_SMTP_PASSWORD: "mypassword"
  DISCOURSE_SMTP_ENABLE_START_TLS: true # (optional, default true)

```

I have tried telnet from the droplet and it gives no errors:  
`telnet smtp.office365.com 587`

What could be the problem? I have tried the smtp settings combination locally from python and it works so I assume that’s not the problem.

---

_[View the full topic](https://meta.discourse.org/t/sending-emails-not-working/149883)._
