# Email send failed. Error 3392 ssl3\_get\_record:wrong version number

**URL:** <https://discourse.nodered.org/t/email-send-failed-error-3392-ssl3-get-record-wrong-version-number/13930>\
**Category:** General\
**Created:** [2 August 2019 11:25 UTC](https://discourse.nodered.org/t/email-send-failed-error-3392-ssl3-get-record-wrong-version-number/13930 "2019-08-02T11:25:23Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Pitmaster](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/pitmaster/32/10698_2.png) [@Pitmaster](https://discourse.nodered.org/u/Pitmaster)\
**Post date:** [2 August 2019 11:25 UTC](https://discourse.nodered.org/t/email-send-failed-error-3392-ssl3-get-record-wrong-version-number/13930/1 "2019-08-02T11:25:23Z")

</div>

I have a switch that is triggering to send an email alert and have verified the switch is working. I am running node-RED v0.20.7. The email send node is giving me this error:

![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/2X/4/41000bc0515081dba14f4a6581e6f40564f4bc69.png)

Error: 3392:error:1408F10B:SSL routines:ssl3\_get\_record:wrong version number:c:\ws\deps\openssl\openssl\ssl\record\ssl3\_record.c:332:

Any ideas?

---

<div class="post-metadata">

**Author:** ![craigcurtin](https://avatars.discourse-cdn.com/v4/letter/c/94ad74/32.png) [@craigcurtin](https://discourse.nodered.org/u/craigcurtin)\
**Post date:** [2 August 2019 23:45 UTC](https://discourse.nodered.org/t/email-send-failed-error-3392-ssl3-get-record-wrong-version-number/13930/2 "2019-08-02T23:45:57Z")

</div>

you might want to post your flow and also versions of NR, NPM etc

Craig

---

<div class="post-metadata">

**Author:** ![afelix](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/afelix/32/9743_2.png) [@afelix](https://discourse.nodered.org/u/afelix)\
**Post date:** [3 August 2019 11:07 UTC](https://discourse.nodered.org/t/email-send-failed-error-3392-ssl3-get-record-wrong-version-number/13930/3 "2019-08-03T11:07:30Z")

</div>

Based on the error it appears you are running on Windows. It’s using openssl to connect to your email server. Does your email server still support SSL3? If no, update your OpenSSL.exe to something that supports newer versions of TLS. If yes, are you by chance behind a proxy?

Here’s one of the reasons you shouldn’t use SSL3 nowadays, by the way: it is vulnerable to the POODLE attack.

> **[ssl-poodle.pdf](https://www.openssl.org/~bodo/ssl-poodle.pdf)**
>
> 213.10 KB

---

<div class="post-metadata">

**Author:** ![Pitmaster](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/pitmaster/32/10698_2.png) [@Pitmaster](https://discourse.nodered.org/u/Pitmaster)\
**Post date:** [6 August 2019 12:34 UTC](https://discourse.nodered.org/t/email-send-failed-error-3392-ssl3-get-record-wrong-version-number/13930/4 "2019-08-06T12:34:20Z")

</div>

I am running windows 10. I currently have NR running on this computer to mock a setup (when I get there I will be placing NR on an application server)

I am attempting to use the outgoing mail server [smtp.office365.com](http://smtp.office365.com). I did not make an attempt to choose how I am connecting to [smtp.office365.com](http://smtp.office365.com) besides the options in the email node.

What is odd is that the directory that the error is referencing does not exist on this machine.

NR version is 0.20.7  
node.js version 12.7.0  
NPM version is 6.10.0

Flow is:

```auto

[{"id":"de8e1018.2dcb8","type":"ui_gauge","z":"7a869bd5.b34bf4","name":"Temperature","group":"99eb2e52.d184f","order":3,"width":"0","height":"0","gtype":"gage","title":"Temperature","label":"ºF","format":"{{value | number: 2}}","min":0,"max":"100","colors":["#00b500","#ffff00","#ca3838"],"seg1":"","seg2":"","x":670,"y":1360,"wires":[]},{"id":"8a591aac.e8ac08","type":"ncd-wireless-node","z":"7a869bd5.b34bf4","name":"Temp. & Humid. Sensor 1","connection":"110d8045.25f968","config_comm":"110d8045.25f968","addr":"00:13:a2:00:41:a3:d1:cd","sensor_type":"1","auto_config":true,"node_id":0,"delay":"300","destination":"0000FFFF","power":4,"retries":10,"pan_id":"7FFF","change_enabled":"","change_pr":"0","change_interval":"0","cm_calibration":"60.6","bp_altitude":"0","bp_pressure":"0","bp_temp_prec":"0","bp_press_prec":"0","amgt_accel":"0","amgt_mag":"0","amgt_gyro":"0","impact_accel":"0","impact_data_rate":"4","impact_threshold":25,"impact_duration":1,"activ_interr_x":1,"activ_interr_y":2,"activ_interr_z":4,"activ_interr_op":8,"filtering":0,"data_rate":5,"time_series":0,"reading_type":1,"x":280,"y":1440,"wires":[["d8f57787.eb04f8","e37af0e2.b44808","d3ca24d0.76dc3"]]},{"id":"d8f57787.eb04f8","type":"change","z":"7a869bd5.b34bf4","name":"CtF","rules":[{"t":"set","p":"payload","pt":"msg","to":"msg.payload.temperature*1.8+32","tot":"jsonata"}],"action":"","property":"","from":"","to":"","reg":false,"x":530,"y":1440,"wires":[["de8e1018.2dcb8","be167d57.d0f3d8","254a654f.1523ea"]]},{"id":"be167d57.d0f3d8","type":"change","z":"7a869bd5.b34bf4","name":"Get Local Settings","rules":[{"t":"set","p":"flow_settings","pt":"msg","to":"app_settings","tot":"flow"},{"t":"set","p":"enable_alert","pt":"msg","to":"flow_settings.enable_alert","tot":"msg"},{"t":"set","p":"min","pt":"msg","to":"flow_settings.min_temp","tot":"msg"},{"t":"set","p":"max","pt":"msg","to":"flow_settings.max_temp","tot":"msg"},{"t":"set","p":"topic","pt":"msg","to":"Temperature Alert in My Office!","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":750,"y":1440,"wires":[["69bb9292.107f34"]]},{"id":"69bb9292.107f34","type":"switch","z":"7a869bd5.b34bf4","name":"","property":"payload","propertyType":"msg","rules":[{"t":"gt","v":"max","vt":"msg"},{"t":"lt","v":"min","vt":"msg"}],"checkall":"true","repair":false,"outputs":2,"x":940,"y":1440,"wires":[["3a062fd2.a5555"],["2d98a70.5ce8e5a"]]},{"id":"3a062fd2.a5555","type":"template","z":"7a869bd5.b34bf4","name":"High Alert","field":"payload","fieldType":"msg","format":"handlebars","syntax":"mustache","template":"The temperature is above acceptable limits!! ({{payload}})","output":"str","x":1140,"y":1400,"wires":[["33a1819.e544cfe"]]},{"id":"2d98a70.5ce8e5a","type":"template","z":"7a869bd5.b34bf4","name":"Low Alert","field":"payload","fieldType":"msg","format":"handlebars","syntax":"mustache","template":"The temperature is below acceptable limits!! ({{payload}})","output":"str","x":1150,"y":1460,"wires":[["33a1819.e544cfe"]]},{"id":"33a1819.e544cfe","type":"delay","z":"7a869bd5.b34bf4","name":"1 msg / 10 seconds","pauseType":"rate","timeout":"5","timeoutUnits":"seconds","rate":"1","nbRateUnits":"10","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":true,"x":1420,"y":1440,"wires":[["da102e37.1bc8e8","3bc6b0d3.081cb"]]},{"id":"da102e37.1bc8e8","type":"ui_toast","z":"7a869bd5.b34bf4","position":"dialog","displayTime":"3","highlight":"","outputs":1,"ok":"OK","cancel":"","topic":"","name":"Dashboard Notification","x":1730,"y":1380,"wires":[[]]},{"id":"3bc6b0d3.081cb","type":"switch","z":"7a869bd5.b34bf4","name":"","property":"enable_alert","propertyType":"msg","rules":[{"t":"true"}],"checkall":"true","repair":false,"outputs":1,"x":1700,"y":1520,"wires":[["bcab2eaa.aa6368","aae32725.f6e7f"]]},{"id":"bcab2eaa.aa6368","type":"e-mail","z":"7a869bd5.b34bf4","server":"smtp.office365.com","port":"587","secure":true,"tls":true,"name":"","dname":"Send emal alert","x":1920,"y":1520,"wires":[]},{"id":"aae32725.f6e7f","type":"debug","z":"7a869bd5.b34bf4","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"enable_alert","targetType":"msg","x":1870,"y":1620,"wires":[]},{"id":"254a654f.1523ea","type":"debug","z":"7a869bd5.b34bf4","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","x":690,"y":1560,"wires":[]},{"id":"99eb2e52.d184f","type":"ui_group","z":"","name":"Temperature","tab":"c9c6123a.6c1d9","disp":true,"width":"6","collapse":false},{"id":"110d8045.25f968","type":"ncd-gateway-config","z":"","name":"Wireless Modem","comm_type":"tcp","ip_address":"10.0.1.185","tcp_port":"2101","port":"","baudRate":"115200","pan_id":"7FFF","rssi":false},{"id":"c9c6123a.6c1d9","type":"ui_tab","z":"","name":"Room 1","icon":"dashboard","disabled":false,"hidden":false}]

```

---

<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:** [6 August 2019 12:54 UTC](https://discourse.nodered.org/t/email-send-failed-error-3392-ssl3-get-record-wrong-version-number/13930/5 "2019-08-06T12:54:19Z")

</div>

I suggest starting by using a version of nodejs. 12.x is not officially supported yet. Go back to 10.x to see if that helps.

Apart from that your flow is not importable. See this for how to share flows here, you can edit your previous post accordingly.

> [@How to share code or flow json](https://discourse.nodered.org/t/how-to-share-code-or-flow-json/506):
>
> To share code samples or flow json in this forum, you need to take care to format it properly so that it is displayed correctly. The easiest way to do that is to click the 'Preformatted Text' button in the toolbar: [image] Then paste in your code or flow json. You should end up with three back-tick characters - ``` - on their own line before and after the code. On standard US English keyboards, this is on the same key as the ~ character. Using the backticks will ens…

---

<div class="post-metadata">

**Author:** ![afelix](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/afelix/32/9743_2.png) [@afelix](https://discourse.nodered.org/u/afelix)\
**Post date:** [6 August 2019 13:24 UTC](https://discourse.nodered.org/t/email-send-failed-error-3392-ssl3-get-record-wrong-version-number/13930/7 "2019-08-06T13:24:57Z")

</div>

Okay scratch that, sounded like that was the issue but if that folder doesn’t exist it’s more complex. Turns out this error with half of that path is common. Are you behind a (corporate) proxy? The error is almost always hitting when you use an http **s** proxy setting, but not connecting to an http **s** proxy or using a non-https port.

---

<div class="post-metadata">

**Author:** ![Pitmaster](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/pitmaster/32/10698_2.png) [@Pitmaster](https://discourse.nodered.org/u/Pitmaster)\
**Post date:** [6 August 2019 14:17 UTC](https://discourse.nodered.org/t/email-send-failed-error-3392-ssl3-get-record-wrong-version-number/13930/8 "2019-08-06T14:17:54Z")

</div>

Changing to node.js to the latest 10.X version did not solve the problem.

In the node properties I unchecked 'Use secure connection." next to the Port field and it now works (not sure why I didn't try that to start). I do have TLS checked.

What exact purpose does 'Use secure connection.' serve? How does it function?

---

<div class="post-metadata">

**Author:** ![afelix](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/afelix/32/9743_2.png) [@afelix](https://discourse.nodered.org/u/afelix)\
**Post date:** [6 August 2019 14:31 UTC](https://discourse.nodered.org/t/email-send-failed-error-3392-ssl3-get-record-wrong-version-number/13930/9 "2019-08-06T14:31:19Z")

</div>

Secure connection means https, or in the case of email, smtp+ssl. If the server plus port you connect to isn’t ssl/tls enabled, it gives problems like the error seen here. Always make sure that your settings match up with the instructions given, in any way or shape. I learned that the hard way when writing raw SMTP calls over a socket connection to gmail’s smtp+ssl server for a school project once; the server we had to use didn’t allow us to use the internal mail server, and the php version on that server was deliberately compiled without openssl support. So raw SMTP was the result. It worked a lot better once I wrapped up the ssl calls to the correct port that did allow ssl.
