I am trying to send a email using Nodemailer with these configurations :
var transporter = nodemailer.createTransport(smtpTransport({
host: 'smtp.outlookhost',
port: 25,
auth: {
user: '',
pass: ''
},
secure:false,
logger: true,
debug: true
}));
I am getting this error :
Error: unable to get local issuer certificate
I am using outlook to send email. How can I provide certificates.
Modified the configurations :
var transporter = nodemailer.createTransport(smtpTransport({
host: 'smtp.outlookhost',
port: 25,
auth: {
user: '',
pass: ''
},
secure:true,
logger: true,
debug: true,
tls: {
// do not fail on invalid certs
rejectUnauthorized: false
}
}));
Error :
Error: 101057795:error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown protocol:openssl\ssl\s23_clnt.c