# Office365 SMTP

**URL:** <https://forum.mautic.org/t/office365-smtp/10663>\
**Category:** Product Support\
**Created:** [July 29, 2018, 10:06pm UTC](https://forum.mautic.org/t/office365-smtp/10663 "2018-07-29T22:06:37Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![regiroy](https://avatars.discourse-cdn.com/v4/letter/r/c6cbf5/32.png) [@regiroy](https://forum.mautic.org/u/regiroy)\
**Post date:** [July 29, 2018, 10:06pm UTC](https://forum.mautic.org/t/office365-smtp/10663/1 "2018-07-29T22:06:37Z")

</div>

Not sure I am posting to the right place. I am trying to setup mautic to send mail via SMTP using Office365. As far as I can tell the settings are correct but I cannot send emails. I get error “Client does not have permissions to send as this sender”. Test Connection Works but email send fails. Anyone has any experience with getting Office365 to work with mautic ? Other SMTP works fine. The settings I have are [smtp.office365.com/587/TLS/SMTP](http://smtp.office365.com/587/TLS/SMTP) mode :login

---

<div class="post-metadata">

**Author:** ![bizcrony](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/bizcrony/32/409_2.png) [@bizcrony](https://forum.mautic.org/u/bizcrony)\
**Post date:** [July 30, 2018, 1:12am UTC](https://forum.mautic.org/t/office365-smtp/10663/2 "2018-07-30T01:12:17Z")

</div>

@Regi Roy did you the smtp port is open or not?

---

<div class="post-metadata">

**Author:** ![regiroy](https://avatars.discourse-cdn.com/v4/letter/r/c6cbf5/32.png) [@regiroy](https://forum.mautic.org/u/regiroy)\
**Post date:** [August 1, 2018, 2:44pm UTC](https://forum.mautic.org/t/office365-smtp/10663/3 "2018-08-01T14:44:36Z")

</div>

Found the solution : instead of smpt.office365,com use the \<domain\>.outlook.com smtp server. Find this in the Office365 console. Use port 25, not 587. set to SSL. this will allos intenral dmaon emails to work. Next setup a connected in Office365 to allow external emails from the webservers IP

---

<div class="post-metadata">

**Author:** ![mauticuser1](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/mauticuser1/32/422_2.png) [@mauticuser1](https://forum.mautic.org/u/mauticuser1)\
**Post date:** [November 20, 2019, 10:04pm UTC](https://forum.mautic.org/t/office365-smtp/10663/4 "2019-11-20T22:04:19Z")

</div>

Im sorry, can you explain a little more? im have trouble getting “Test Connection” and “Send Test Email” to work.
