现在我测试一个简单的代码,它不会给我错误,但电子邮件也不会来:
var nodemailer = require('nodemailer');
var ses = require('nodemailer-ses-transport');
var transporter = nodemailer.createTransport(ses({
accessKeyId: '1055711977161-d0n2e9u0q2qff5iiv3klmvmah4lnbrd2.apps.googleusercontent.com',
secretAccessKey: 'AEgQBY-OEWNNSiBtBmN5Xc3U'
}));
transporter.sendMail({
from: 'sender@address',
to: 'Mail689@gmail.com',
subject: 'hello',
text: 'hello world!'
});
我不知道原因,但也许有一个很好的工作示例?