# Basic mail settings for Outlook365

**URL:** <https://help.nextcloud.com/t/basic-mail-settings-for-outlook365/57746>\
**Category:** ℹ️ Support\
**Created:** [August 5, 2019, 11:50pm UTC](https://help.nextcloud.com/t/basic-mail-settings-for-outlook365/57746 "2019-08-05T23:50:08Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![senadman](https://help.nextcloud.com/letter_avatar/senadman/32/6_22734026db12803ebb3e059622ac3534.png) [@senadman](https://help.nextcloud.com/u/senadman)\
**Post date:** [August 5, 2019, 11:50pm UTC](https://help.nextcloud.com/t/basic-mail-settings-for-outlook365/57746/1 "2019-08-05T23:50:08Z")

</div>

I am inserting O365 mail credentials that work with other apps (not nextcloud) in Settings-\>Basic Settings-\>Email Server and no matter what combination I use I cannot make a connection

Can someone please point me in the right direction.

---

<div class="post-metadata">

**Author:** ![nephilim](https://help.nextcloud.com/user_avatar/help.nextcloud.com/nephilim/32/2760_2.png) [@nephilim](https://help.nextcloud.com/u/nephilim)\
**Post date:** [August 6, 2019, 7:25pm UTC](https://help.nextcloud.com/t/basic-mail-settings-for-outlook365/57746/2 "2019-08-06T19:25:10Z")

</div>

Might this be helpful?:

> [@Microsoft Office365 Account](https://help.nextcloud.com/t/microsoft-office365-account/46167):
>
> Has anyone figured out how to add an Office365 email account to the mail app? I can add Google mail no problem, but I still use an O365 account and as part of my de-microsofting plan, I want to use the nextcloud email app instead. I have tried a whole series of variations based on two different sites that claim to do it using very different IMAP settings and so far, nothing has worked. Hopefully I am just being dumb, as Office365’s site CLAIMS they support IMAP. I have got the SMTP client to…

---

<div class="post-metadata">

**Author:** ![senadman](https://help.nextcloud.com/letter_avatar/senadman/32/6_22734026db12803ebb3e059622ac3534.png) [@senadman](https://help.nextcloud.com/u/senadman)\
**Post date:** [August 6, 2019, 11:50pm UTC](https://help.nextcloud.com/t/basic-mail-settings-for-outlook365/57746/3 "2019-08-06T23:50:51Z")

</div>

Thankyou nephilim but the settings suggested I am already using.

Nextcloud complains with:

A problem occurred while sending the email. Please revise your settings. (Error: Expected response code 354 but got code “503”, with message "503 5.5.1 Bad sequence of commands  
")

---

<div class="post-metadata">

**Author:** ![wizlon](https://help.nextcloud.com/user_avatar/help.nextcloud.com/wizlon/32/7702_2.png) [@wizlon](https://help.nextcloud.com/u/wizlon)\
**Post date:** [August 9, 2019, 8:33am UTC](https://help.nextcloud.com/t/basic-mail-settings-for-outlook365/57746/4 "2019-08-09T08:33:46Z")

</div>

Oh my, I had forgotten about this. I got O365 exchange to work with Nextcloud. Under basic settings, use send mode smtp. Select STARTTLS. In from address, enter your o365 email ‘user@MyO365Domain.com’. Authenticaion method is ‘Login’. Server address is [smtp.office.365.com](http://smtp.office.365.com), port 587.

Credentials is your O365 user email address again ([user@MyO365Domain.com](mailto:user@MyO365Domain.com)). If you have two factor enabled on your O365 account, you will need an app password for the credential password field.

This works for me. Good luck to all…

---

<div class="post-metadata">

**Author:** ![Michael\_Gentles](https://help.nextcloud.com/user_avatar/help.nextcloud.com/michael_gentles/32/19339_2.png) [@Michael\_Gentles](https://help.nextcloud.com/u/Michael_Gentles)\
**Post date:** [May 10, 2020, 5:42pm UTC](https://help.nextcloud.com/t/basic-mail-settings-for-outlook365/57746/5 "2020-05-10T17:42:18Z")

</div>

This is still failing for me, it refuses to authenticate. Settings are all correct, any ideas? Running NC 18.04.02

---

<div class="post-metadata">

**Author:** ![zertrin](https://help.nextcloud.com/user_avatar/help.nextcloud.com/zertrin/32/13500_2.png) [@zertrin](https://help.nextcloud.com/u/zertrin)\
**Post date:** [June 19, 2020, 6:55am UTC](https://help.nextcloud.com/t/basic-mail-settings-for-outlook365/57746/6 "2020-06-19T06:55:10Z")

</div>

There’s a small typo in the solution: the server address is `smtp.office365.com` (not ~~`smtp.office.365.com`~~ ).

With this fix, it worked for me too.

---

<div class="post-metadata">

**Author:** ![Don\_Robertson](https://help.nextcloud.com/user_avatar/help.nextcloud.com/don_robertson/32/44321_2.png) [@Don\_Robertson](https://help.nextcloud.com/u/Don_Robertson)\
**Post date:** [July 15, 2022, 3:47am UTC](https://help.nextcloud.com/t/basic-mail-settings-for-outlook365/57746/7 "2022-07-15T03:47:59Z")

</div>

I cannot get it to work. The settings can be found in the outlook web app - but they don’t work.

What I particularly hate is the way the Nextcloud mail app doesn’t give you any indication that it failed.

---

<div class="post-metadata">

**Author:** ![wwe](https://help.nextcloud.com/user_avatar/help.nextcloud.com/wwe/32/72963_2.png) [@wwe](https://help.nextcloud.com/u/wwe)\
**Post date:** [December 4, 2024, 10:13am UTC](https://help.nextcloud.com/t/basic-mail-settings-for-outlook365/57746/8 "2024-12-04T10:13:21Z")

</div>


