I using below configuration for sending an email via Nodemailer but unable to send it and it is thrown error: getaddrinfo ENOTFOUND ssl://smtp.googlemail.com ssl://smtp.googlemail.com:587 at GetAddrInfoReqWrap.onlookup
Configuration:
host: 'smtp.gmail.com',
port: 465,
secure: true,
auth: {
user: '[email protected]',
pass: 'xxxx'
}
Anyone can give me a solution to solving it soon?
Try to add service
parameter with value gmail
.
var smtpTransport = nodemailer.createTransport({
service: 'gmail',
port: 8000,
secure: false, // use SSL
auth: {
user: '[email protected]',
pass: 'pass'
}
});
Refer How to send mail using nodemailer
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With