使用nodemailer的时候,遇到一个问题,
{ [Error: unable to verify the first certificate] code: 'UNABLE_TO_VERIFY_LEAF_SIGNATURE' }
解决方法是在
nodemailer.createTransport的参数对象里面加上,tls: {rejectUnauthorized: false}
使用nodemailer的时候,遇到一个问题,
{ [Error: unable to verify the first certificate] code: 'UNABLE_TO_VERIFY_LEAF_SIGNATURE' }
解决方法是在
nodemailer.createTransport的参数对象里面加上,tls: {rejectUnauthorized: false}