zepochs / nestjs-mailer

🌈 A simple implementation example with and without email-templates using mailer module for nest js built on top of nodemailer.
https://github.com/nest-modules/mailer
MIT License
121 stars 30 forks source link

hi thanks for your repo #36

Open saurabhtalele opened 1 year ago

saurabhtalele commented 1 year ago

Error: read ECONNRESET at TLSWrap.onStreamRead (node:internal/stream_base_commons:217:20) { errno: -4077, code: 'ESOCKET', syscall: 'read', command: 'CONN'

how to solve this thanks

sg-milad commented 10 months ago

Error: read ECONNRESET at TLSWrap.onStreamRead (node:internal/stream_base_commons:217:20) { errno: -4077, code: 'ESOCKET', syscall: 'read', command: 'CONN'

how to solve this thanks

I solved this problem by disabling tls

      transport: {
        host: 'smtp.example.com',
        port: 587,
        secure: false, // disable tls 
        auth: { 
          user: "username",
          pass: "password", 
            }
    , },