node.js nodemailer gmail erreur

Im essayant d'envoyer un e-mail à l'aide de node.js - nodemailer module , l'ensemble de mon code ressemble à

var http=require("http");
var nodemailer=require("nodemailer");

http.createServer(function(req,res){
     res.writeHead(200, {"Content-Type": "text/plain"});
     var transporter = nodemailer.createTransport('SMTP',{
    service: 'gmail',
    auth: {
        user: '[email protected]', //my mail
        pass: 'mypassword'
    }
});
var mailOptions = {
    from: 'Fred Foo ✔ <[email protected]>', //sender address 
    to: '[email protected]', //the same mail = want to send it to myself
    subject: 'Hello ✔', //Subject line 
    text: 'Hello world ✔', //plaintext body 
    html: '<b>Hello world ✔</b>' //html body 
};
    transporter.sendMail(mailOptions, function(error, info){
    if(error){
        return console.log(error);
    }
    console.log('Message sent: ' + info.response);

});
    res.end("hllo");
}).listen(4000)

mais quand je le lance , il jette "login" erreur , bien que mon nom/passe sont corrects toute erreur ressemble à ceci

{ [AuthError: Invalid login - 534-5.7.14 <https://accounts.google.com/ContinueSi
gnIn?sarp=1&scc=1&plt=AKgnsbtWV
534-5.7.14 FHw6FqlXkg3nIQW7AtsO7o0r-4EtD7eTtnrgHeXxeULYqUtHjrnTB9R647mlR7GY9Z4lS
z
534-5.7.14 WuzYYnNwNBjIyrjNzHk-o9sIV_vIsbjgF5HsFPtJl5S0dSf3eyNCX_E8tQ_Z6s4Z1mUe5
i
534-5.7.14 p8Y5YagzdN5RSkjpB1yTu3TfWHSTLisczIZphhLfhlz-v86tAB8MX-4jRqA51hfJYy0ko
F
534-5.7.14 qytMeIbs1kUZEJzPIabmjRi87DIk> Please log in via your web browser and
534-5.7.14 then try again.
534-5.7.14  Learn more at
534 5.7.14  https://support.google.com/mail/answer/78754 cx1sm17733852wib.0 - gs
mtp]
  name: 'AuthError',
  data: '534-5.7.14 <https://accounts.google.com/ContinueSignIn?sarp=1&scc=1&plt
=AKgnsbtWV\r\n534-5.7.14 FHw6FqlXkg3nIQW7AtsO7o0r-4EtD7eTtnrgHeXxeULYqUtHjrnTB9R
647mlR7GY9Z4lSz\r34-5.7.14 WuzYYnNwNBjIyrjNzHk-o9sIV_vIsbjgF5HsFPtJl5S0dSf3ey
NCX_E8tQ_Z6s4Z1mUe5i\r\n534-5.7.14 p8Y5YagzdN5RSkjpB1yTu3TfWHSTLisczIZphhLfhlz-v
86tAB8MX-4jRqA51hfJYy0koF\r\n534-5.7.14 qytMeIbs1kUZEJzPIabmjRi87DIk> Please log
 in via your web browser and\r\n534-5.7.14 then try again.\r\n534-5.7.14  Learn
more at\r\n534 5.7.14  https://support.google.com/mail/answer/78754 cx1sm1773385
2wib.0 - gsmtp',
  stage: 'auth' }

il ya quelque chose que je dois mettre dans mon gmail acc permet d'envoyer des emails de qui ou comment puis-je résoudre ce problème

bonne question !!!

OriginalL'auteur Darlyn | 2015-09-07