I am using an external hardware (Advantech ADAM 6717) from which I need emails to be sent based on the readings. But, when I try to test the email functionality via the Node red on the hardware, I am getting the following error.
How to rectify it?
Am I doing a mistake here? I have connected the hardware to the static IP address for remote access. I am able to obtain the remote access, but only the email functionality is not working.
As E1cid says, the EAI_AGAIN means that node red could not get an IP address for smtp.gmail.com, which suggests that either node-red cannot access the internet or that DNS lookup is not working correctly on your system.
You said that you have configured it with a fixed IP. How did you do that? If you configured that in the device then you may probably need to set a DNS server too.
I have given the IP address for the static connection with Gateway, subnet and DNS.
Initially I used the DNS as 192.168.2.1 and then I was able to access the node red, but when I tried to change the DNS as per the network administrator's DNS servers, I get the screen as seen below.
I was able to connect another remote device with the same IP address and DNS, Gateway and subnet and was able to send the email notifications. But, with this particular device with node-red, I cant reach the node-red server also.