mardi 2 juin 2015

emailjs not working [node js]

i'm trying to use the emailjs (http://ift.tt/L46LwW) for send emails with nodejs, but, it gives me an error: { [Error: timedout while connecting to smtp server] code: 4, smtp: undefined }

I'm trying to use hotmail, but I can use other, I only want this working. Any idea please?

 var email   = require("emailjs");
    var server  = email.server.connect({
       user:    "xxx@hotmail.com", 
       password:"xxxyyyy", 
       host:    "smtp-mail.live.com", 
       ssl:     true
    });

    // send the message and get a callback with an error or details of the message that was sent
    server.send({
       text:    "i hope this works", 
       from:    "you <xxxxxx@hotmail.com>", 
       to:      "someone <zzzzz@hotmail.com>",
       //cc:      "else <else@your-email.com>",
       subject: "testing emailjs"
    }, function(err, message) { console.log(err || message); });




Aucun commentaire:

Enregistrer un commentaire