# Office 365 send mail smtp

**URL:** <https://discourse.nodered.org/t/office-365-send-mail-smtp/54019>\
**Category:** General\
**Created:** [20 November 2021 06:17 UTC](https://discourse.nodered.org/t/office-365-send-mail-smtp/54019 "2021-11-20T06:17:58Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![lexeyfan](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/lexeyfan/32/16187_2.png) [@lexeyfan](https://discourse.nodered.org/u/lexeyfan)\
**Post date:** [20 November 2021 06:17 UTC](https://discourse.nodered.org/t/office-365-send-mail-smtp/54019/1 "2021-11-20T06:17:58Z")

</div>

i need help, I have an office 365 account in I am using contrib-email-out, settings:  
Server: [smtp.office365.com](http://smtp.office365.com)  
Port: 587  
tls -true  
I get the error  
Error: 140639452903296: error: 1408F10B: SSL routines: ssl3\_get\_record: wrong version number: ../ deps / openssl / openssl / ssl / record / ssl3\_record.c: 332:

There are no difficulties with other mailboxes ([yandex.ru](http://yandex.ru) /mail.ru)

* * *

Ubuntu 20.04.3 LTS  
Node-RED version: v2.0.6  
Node.js version: v14.18.1

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [20 November 2021 09:17 UTC](https://discourse.nodered.org/t/office-365-send-mail-smtp/54019/2 "2021-11-20T09:17:01Z")

</div>

> [@lexeyfan](#):
>
> contrib-email-out,

Is there a reason you are not using the email node supplied by the node-red developers, which is the one most people use? That is node-red-node-email.

If you look at the [github page for the contrib node](https://github.com/alessh/node-red-contrib-email-out) you will see that it has not been updated in four years and there are outstanding unaddressed issues dating back to 2017. I suggest you uninstall that one and use the usual one.

---

<div class="post-metadata">

**Author:** ![UnborN](https://avatars.discourse-cdn.com/v4/letter/u/4491bb/32.png) [@UnborN](https://discourse.nodered.org/u/UnborN)\
**Post date:** [20 November 2021 09:27 UTC](https://discourse.nodered.org/t/office-365-send-mail-smtp/54019/3 "2021-11-20T09:27:51Z")

</div>

I had an old hotmail account and I tried the office365 settings with the **node-red-node-email**  
and it also fails with the same error when i have **"Use secure connection"** checked.

If i unckeck it the email goes through.  
TLS checked

---

<div class="post-metadata">

**Author:** ![lexeyfan](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/lexeyfan/32/16187_2.png) [@lexeyfan](https://discourse.nodered.org/u/lexeyfan)\
**Post date:** [20 November 2021 12:53 UTC](https://discourse.nodered.org/t/office-365-send-mail-smtp/54019/4 "2021-11-20T12:53:37Z")

</div>

> [@Colin](#):
>
> s there a reason you are not using the email node supplied by the node-red developers, which is the one most people use? That is node-red-node-email.
> 
> If you look at the [github page for the contrib node](https://github.com/alessh/node-red-contrib-email-out) you will see that it has not been updated in four years and there are outstanding unaddressed issues dating back to 2017. I suggest you uninstall that one and use the usual one.

I need to get the status of a message, sent or not sent

---

<div class="post-metadata">

**Author:** ![lexeyfan](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/lexeyfan/32/16187_2.png) [@lexeyfan](https://discourse.nodered.org/u/lexeyfan)\
**Post date:** [20 November 2021 13:03 UTC](https://discourse.nodered.org/t/office-365-send-mail-smtp/54019/5 "2021-11-20T13:03:37Z")

</div>

> [@UnborN](#):
>
> I had an old hotmail account and I tried the office365 settings with the **node-red-node-email**  
> and it also fails with the same error when i have **"Use secure connection"** checked.
> 
> If i unckeck it the email goes through.  
> TLS checked

if uncheck Use secure connection Error:  
Authentication unsuccessful, basic authentication is disabled

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [20 November 2021 13:45 UTC](https://discourse.nodered.org/t/office-365-send-mail-smtp/54019/6 "2021-11-20T13:45:01Z")

</div>

> [@lexeyfan](#):
>
> I need to get the status of a message, sent or not sent

If, with the standard email node, you attach to it a Catch node and a Complete node, then the Complete node will fire on success and the Catch node will fire on failure.

---

<div class="post-metadata">

**Author:** ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)\
**Post date:** [20 November 2021 14:34 UTC](https://discourse.nodered.org/t/office-365-send-mail-smtp/54019/7 "2021-11-20T14:34:36Z")

</div>

Office 365 uses "modern authentication" and so will fail if you don't connect using OAuth or similar if modern auth has been required (which it should be if you follow the Microsoft recommended security baseline). Further more, if your admins have turned on MFA, you will need to create an application password and use that instead of your normal login. This may or may not be possible depending on how O365 is configured and what rights your user-id has.

You should contact your O365 admin team to get some help.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [19 January 2022 14:35 UTC](https://discourse.nodered.org/t/office-365-send-mail-smtp/54019/8 "2022-01-19T14:35:14Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
