に私はnodejsに新しいですし、nodemailerモジュールからメールを送信しようとするが、それはエラーすなわち「Unsupported configuration, downgrade Nodemailer to v0.7.1 to use it
」を持っています。ここでノードメーラーエラー:「サポートされていない構成では、それを使用するv0.7.1するNodemailerをダウングレードは」localhost
は私のコードです: -
var nodemailer = require('nodemailer');
var mailTransport = nodemailer.createTransport('SMTP', {
service: 'Gmail',
auth: {
user: '[email protected]',
pass: 'xxxxxxxxx',
}
});
mailTransport.sendMail({
from: '"ABC" <[email protected]>',
to: '[email protected]',
subject: 'Test',
text: 'Thank you for contact.',
}, function (err) {
if (err)
console.error('Unable to send email: ' + err);
});
チェックアウト[ドキュメント](https://github.com/nodemailer/nodemailer#use-the-default-smtp-transport)。 – robertklep