# SMTP with office365?

**URL:** <https://meta.discourse.org/t/smtp-with-office365/77467>\
**Category:** Self-hosting\
**Tags:** email\
**Created:** [January 8, 2018, 11:57am UTC](https://meta.discourse.org/t/smtp-with-office365/77467 "2018-01-08T11:57:45Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![Chopper](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/chopper/32/57073_2.png) [@Chopper](https://meta.discourse.org/u/Chopper)\
**Post date:** [January 8, 2018, 1:56pm UTC](https://meta.discourse.org/t/smtp-with-office365/77467/3 "2018-01-08T13:56:20Z")

</div>

Okay the problem is now fixed. Huge mistake from my side : the email from Admin → settings → notification email was not the same from the smtp username.  
Maybe a check should be made to prevent user to makes this mistake 🤨

> but it seems like DISCOURSE\_SMTP\_AUTHENTICATION: login isn’t required

True, the final config

```
DISCOURSE_SMTP_ADDRESS: smtp.office365.com
DISCOURSE_SMTP_PORT: 587
DISCOURSE_SMTP_USER_NAME: test@example.fr
DISCOURSE_SMTP_PASSWORD: password
DISCOURSE_SMTP_AUTHENTICATION: login
DISCOURSE_SMTP_ENABLE_START_TLS: true

```

---

_[View the full topic](https://meta.discourse.org/t/smtp-with-office365/77467)._
