Nodemailer と GMAIL を使用してメールを送信したいのですが、うまくいきません...
編集#1:
コード :
var transporter = nodemailer.createTransport(smtpPool({
service: 'gmail',
auth: {
user: '***@gmail.com',
pass: '***'
},
maxConnections: 5,
maxMessages: 10
}));
var mailOptions = {
from: mail, // sender address
to: 'infoprintwithlove@gmail.com',
subject: subject,
text: message,
html: message
};
transporter.sendMail(mailOptions, function(error, info){
if(error){
console.log(error);
}else{
request.flash('success', 'Votre message à bien été envoyé.');
response.redirect('/contacter-printwithlove');
}
});
エラー :
{ [Error: Invalid login]
code: 'EAUTH',
パスワードが間違っているようですが、Gmail のウェブ インターフェースではパスワードが正常に機能しています...
編集#2: