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?