Error: self signed certificate in certificate chain in email provider nodejs code example
Example 1: nodemail self signed certificate in certificate chain
var transporter = nodemailer.createTransport({
host: "outmail.abc.co.th", // hostname
secure: false, // use SSL
port: 25, // port for secure SMTP
auth: {
user: "[email protected]",
pass: "passwordmail"
},
tls: {
rejectUnauthorized: false
}
});
Example 2: nodemailer Error: self signed certificate in certificate chain
Disable your antivirus software