Error sending - Nodemailer

0

I configured my nodemailer as follows

 let transporter = nodemailer.createTransport({
        port: 465,
        host: 'host do cpanel',
        auth: {
            user: '[email protected]',
            pass: 'minhaSenha'
        }
    });

and it gives an error

Error: getaddrinfo ENOTFOUND

When I try to send the email, I got the host data and the port on my own cpanel site, what happens?

    
asked by anonymous 22.03.2017 / 19:19

0 answers