1
I configured my nodemailer as follows
let transporter = nodemailer.createTransport({
port: 465,
host: 'host do cpanel',
auth: {
user: '[email protected]',
pass: 'minhaSenha'
}
});
and he makes a mistake
Error: getaddrinfo ENOTFOUND
when I try to send the email, I got the host data and port on my Cpanel’s own website, which happens?
What do you have in the
host
? is the smtp address of the right server? can you ping that address on the console?– Sergio
host is what appears in Cpanel, how does this ping?
– Andre Neto
At the command line, for example
ping smtp.gmail.com
– Sergio
I did and it comes up 4 times Out of order time limit.
– Andre Neto
So you have something blocking your Internet access... if
ping smtp.gmail.com
does not work you need to see the firewall or network settings– Sergio
ping stmp.gmail.com works, that came up when I pinged my Cpanel host
– Andre Neto
Ah, so I think you need to contact your host. Maybe it’s possible with an IP on DNS views?
– Sergio
I put the IP and the result was the same
– Andre Neto