When you are running the code on your own device, Look at your antivirus configurations. Antiviruses normally mess all around with e-mail ports utilization. Node.js might not figure out the MITM cert your antivirus is https://hamzaqjim665639.blogsmine.com/30775001/node-expert-fundamentals-explained