# Node-red-node-email tls check

**URL:** <https://discourse.nodered.org/t/node-red-node-email-tls-check/1853>\
**Category:** Feature Requests\
**Created:** [27 July 2018 06:57 UTC](https://discourse.nodered.org/t/node-red-node-email-tls-check/1853 "2018-07-27T06:57:27Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Schreck](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/schreck/32/1424_2.png) [@Schreck](https://discourse.nodered.org/u/Schreck)\
**Post date:** [27 July 2018 06:57 UTC](https://discourse.nodered.org/t/node-red-node-email-tls-check/1853/1 "2018-07-27T06:57:27Z")

</div>

Hello,

we are trying to send notificiation mails inside our company. For that, we have an internal SMTP we can contact. While trying to send a new mail, node-red complains about not getting the local issuer certificate.

```
Error: unable to get local issuer certificate

```

We already searched about the created transport and there is an option to reject unauthorized connections:

```
 var smtpOptions = {
        host: node.outserver,
        port: node.outport,
        secure: node.secure,
        tls: {rejectUnauthorized: false} // line added by myself
 }

```

With this option, I could send internal messages without setting any more insecure options like `NODE_TLS_REJECT_UNAUTHORIZED`.

Is there a chance to add a checkbox inside the configuratio for this?

Best regards.

---

<div class="post-metadata">

**Author:** ![dceejay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dceejay/32/38_2.png) [@dceejay](https://discourse.nodered.org/u/dceejay)\
**Post date:** [27 July 2018 07:46 UTC](https://discourse.nodered.org/t/node-red-node-email-tls-check/1853/2 "2018-07-27T07:46:54Z")

</div>

Or happy to consider a pull request if you willing.

---

<div class="post-metadata">

**Author:** ![Schreck](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/schreck/32/1424_2.png) [@Schreck](https://discourse.nodered.org/u/Schreck)\
**Post date:** [30 July 2018 05:54 UTC](https://discourse.nodered.org/t/node-red-node-email-tls-check/1853/3 "2018-07-30T05:54:04Z")

</div>

Added my changes into the node configuration and made a pull request. Would be happy if someone would review it, it is my very first change 🙂
