ARTICLE AD BOX
My createTransport looks like this right now:
const transporter = nodemailer.createTransport({ host: SMTP_SERVER_HOST, port: Number(SMTP_SERVER_PORT), secure: true, auth: { user: SMTP_SERVER_USERNAME, pass: SMTP_SERVER_PASSWORD, }, });this works on my localhost. I never get an error mails get delivered. But when I try it on Hostinger's hosting then it gives me this error:
Something Went Wrong Error: connect ECONNREFUSED ::1:587 at <unknown> (Error: connect ECONNREFUSED ::1:587) { errno: -111, code: 'ESOCKET', syscall: 'connect', address: '::1', port: 587, command: 'CONN' }I also tried the solution to this question. It didn't work.
All help is welcome!
