Sending error - Nodemailer

Asked

Viewed 212 times

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?

  • host is what appears in Cpanel, how does this ping?

  • At the command line, for example ping smtp.gmail.com

  • I did and it comes up 4 times Out of order time limit.

  • 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

  • ping stmp.gmail.com works, that came up when I pinged my Cpanel host

  • Ah, so I think you need to contact your host. Maybe it’s possible with an IP on DNS views?

  • I put the IP and the result was the same

Show 3 more comments
No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.