我使用Nodemailer 2.6.4在節點6.9.1不支持的配置,降級Nodemailer到V0.7.1
var nodemailer = require("nodemailer");
var wellknown = require('nodemailer-wellknown');
var transporter = nodemailer.createTransport("SMTP",{
service: "yahoo",
auth: {
user: ",,,@yahoo.com",
pass: ",,,,,,"
}
});
transporter.sendMail({
from : sender_address,
to : recipients,
reply_to : "<[email protected]>",
subject : "The subject",
text : "a text message"
},
function(error, response) {}
);
當運行它,我收到此錯誤:
Error: Unsupported configuration, downgrade Nodemailer to v0.7.1 to use it
我想學會使用最新版本,那麼我必須改變什麼?