Node Red Email Connection Timeout Error


I've been unable to send any email with Node Red despite many tries and configurations. I consistently get the following message:

msg : error

"Error: Connection timeout"

8/5/2019, 1:54:37 PMnode: fb4c2fd0.94dfctest subject : msg.error : Object


message: "Error: Connection timeout"

source: object

id: "b757ccd6.a1edb"

type: "e-mail"

name: ""

count: 1

stack: string

Error: Connection timeout at SMTPConnection._formatError (/usr/lib/node_modules/node-red/node_modules/node-red-node-email/node_modules/nodemailer/node_modules/nodemailer-smtp-transport/node_modules/smtp-connection/src/smtp-connection.js:384:15) at SMTPConnection._onError (/usr/lib/node_modules/node-red/node_modules/node-red-node-email/node_modules/nodemailer/node_modules/nodemailer-smtp-transport/node_modules/smtp-connection/src/smtp-connection.js:374:29) at SMTPConnection. (/usr/lib/node_modules/node-red/node_modules/node-red-node-email/node_modules/nodemailer/node_modules/nodemailer-smtp-transport/node_modules/smtp-connection/src/smtp-connection.js:163:14) at ontimeout (timers.js:386:11) at tryOnTimeout (timers.js:250:5) at Timer.listOnTimeout (timers.js:214:5)

Any ideas would be helpful. I've tried using a Gmail account with 1 step security, enabled less secure apps, tried 2 step security, also with app password. I've also tried using a Yahoo mail account. All tries yield the same result, the above error message. I'm using an inject node and have a string payload of "test" and a topic of "test subject".

I'm running Node Red on a Siemens Simatic IOT with two separate ethernet ports, one connected to the internet via DHCP, the other connected to a separate internal network with a static IP. I wonder if I need to somehow tell the device which port to use. I am however also publishing data to Google Docs with the same flow, that works without issues.


Bit of a standard question to start with, but are you behind a proxy? And if so, does that proxy allow traffic through on the SMTP ports for your email host, port 465 for gmail iirc (but that’s from mind so you better look it up). Same for firewalls, does your firewall allow outgoing traffic to those ports?

Good question, I'll find out and get back to you soon.

I also use the node-red-node-email with gmail. It was working fine for almost 2 months then it suddenly stopped sending emails for me and node red starts sending me that("Error: Connection timeout") error.