title: EHOSTUNREACH error with nodemailer
body: <p>I'm having an issue with nodemailer and would appreciate your help.</p>
  
  <p>I am trying to send mail through nodemailer on node.js. EHOSTUNREACH error keeps popping up.I tried with two different services however, I keep getting the same error. My error log looks like</p>
  
  <pre><code>{ [Error: connect EHOSTUNREACH 65.55.163.152:587]
    code: 'EHOSTUNREACH',
    errno: 'EHOSTUNREACH',
    syscall: 'connect',
    address: '65.55.163.152',
    port: 587,
    stage: 'init' }
  </code></pre>
  
  <p>The code that I'm using in my application is:</p>
  
  <pre><code>var smtpTransport = nodemailer.createTransport("SMTP",{
  service: "hotmail",
  auth: {
  user: "xyz@hotmail.com",
  pass: "password"
  }
  }); 
  
  
  
  
  api.post('/send',function(req,res){
      var mailOptions={
          from:'xyz@hotmail.com',
          to : req.body.to,
          subject : req.body.subject,
          text1 : req.body.text1
      }
      console.log(mailOptions);
      smtpTransport.sendMail(mailOptions, function(error, response){
          if(error){
              console.log(error);
              res.end("error");
          }
          else{
              console.log("Message sent: " + response.message);
              res.end("sent");
          }
      });
  })  
  </code></pre>
  
  <p>I am fairly new to node and fail to understand the reason for this occurance. Any help on the matter is solicited.</p>