How can i send mail from node js with the use of my domail mail like as : [email protected]
The connection setting was below using nodemailer
const transporter = nodemailer.createTransport({ host: 'https://example.com', port: 465, // Port secure: true, // this is true as port is 465 auth: { user: '[email protected]', pass: 'mypassword' } }); If i send mail there is an error like below
Error: getaddrinfo ENOTFOUND https://example.com at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:67:26) { errno: -3008, code: 'EDNS', syscall: 'getaddrinfo', hostname: 'https://example.com', command: 'CONN' }