self signed certificate in certificate chain node js request code example
Example: 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
}
});