# Sending e-mail does not work (node-red-node-email)

**URL:** <https://discourse.nodered.org/t/sending-e-mail-does-not-work-node-red-node-email/17604>\
**Category:** General\
**Created:** [6 November 2019 19:46 UTC](https://discourse.nodered.org/t/sending-e-mail-does-not-work-node-red-node-email/17604 "2019-11-06T19:46:23Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![bummzulu](https://avatars.discourse-cdn.com/v4/letter/b/35a633/32.png) [@bummzulu](https://discourse.nodered.org/u/bummzulu)\
**Post date:** [6 November 2019 19:46 UTC](https://discourse.nodered.org/t/sending-e-mail-does-not-work-node-red-node-email/17604/1 "2019-11-06T19:46:23Z")

</div>

Hello,

I have upgraded from 0.19 to the latest version of node red v1.0.2.

Since then sending e-mails over gmail does not work anymore.

```auto
[
    {
        "id": "22a29086.083818",
        "type": "e-mail",
        "z": "91af24f6.c1567",
        "server": "smtp.gmail.com",
        "port": "465",
        "secure": true,
        "tls": false,
        "name": "martin@gmail.com",
        "dname": "",
        "x": 1000,
        "y": 220,
        "wires": []
    }

```

]

The error message is:

`Error: queryA EREFUSED smtp.gmail.com at QueryReqWrap.onresolve [as oncomplete] (dns.js:196:19)`

I tried different settings for TLS and "use secure connection". I uninstalled the package and installed it again. I created a new app password. The error always stays the same.

Any hint would be highly appreciated.

Thanks!

---

<div class="post-metadata">

**Author:** ![bummzulu](https://avatars.discourse-cdn.com/v4/letter/b/35a633/32.png) [@bummzulu](https://discourse.nodered.org/u/bummzulu)\
**Post date:** [7 November 2019 18:13 UTC](https://discourse.nodered.org/t/sending-e-mail-does-not-work-node-red-node-email/17604/2 "2019-11-07T18:13:10Z")

</div>

> [@bummzulu](#):
>
> dns.js:196:19

I figured out a workaround. When using the IP address instead of the dns name for [smtp.gmail.com](http://smtp.gmail.com) it is working fine.

---

<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:** [11 November 2021 09:22 UTC](https://discourse.nodered.org/t/sending-e-mail-does-not-work-node-red-node-email/17604/3 "2021-11-11T09:22:14Z")

</div>

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