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: 'xxx@gmail.com',
pass: 'xxxx'
}
Anyone can give me a solution to solving it soon?