# Not able to send email from O365

**URL:** <https://forum.ansible.com/t/not-able-to-send-email-from-o365/28213>\
**Category:** Ansible Developer\
**Created:** [July 31, 2018, 2:19pm UTC](https://forum.ansible.com/t/not-able-to-send-email-from-o365/28213 "2018-07-31T14:19:58Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![misra.debasish90](https://avatars.discourse-cdn.com/v4/letter/m/b5a626/32.png) [@misra.debasish90](https://forum.ansible.com/u/misra.debasish90)\
**Post date:** [July 31, 2018, 2:19pm UTC](https://forum.ansible.com/t/not-able-to-send-email-from-o365/28213/1 "2018-07-31T14:19:58Z")

</div>

Hi trying to send emain through `pod51024.outlook.com` host but gets below error

fatal: [localhost]: FAILED! =\> {“changed”: false, “msg”: “StartTLS is not offered on server [pod51024.outlook.com:587](http://pod51024.outlook.com:587)”, “rc”: 1}

please find my configuration below

do i need to change some config in host ??

please let me know where im going wrong

---

<div class="post-metadata">

**Author:** ![yaakov.kuperman](https://avatars.discourse-cdn.com/v4/letter/y/45deac/32.png) [@yaakov.kuperman](https://forum.ansible.com/u/yaakov.kuperman)\
**Post date:** [July 31, 2018, 2:37pm UTC](https://forum.ansible.com/t/not-able-to-send-email-from-o365/28213/2 "2018-07-31T14:37:44Z")

</div>

That’s a problem with the email server, it doesn’t support secure communication over TLS. You have a few options here: you could either turn off ‘secure’ and bite that bullet, determine if there’s a different way to inject to that that’s more secure and supports TLS, or use a managed email service like sendgrid, mailgun, or my employer - sparkpost (assuming that your target email addresses are accessible from the outside).
