title: Sending emails using nodemailer in node.js
body: <p>I've got an authorisation problem while sending emails via my own email address. Here is my code:</p>
  
  <pre><code>var transporter = nodemailer.createTransport({
      host: 'serverDomain',
      port: 25,
      secure: 'false',
      tls: {ciphers: "SSLv3"},
      auth: {
          user: 'myEmailAddress',
          pass: 'myPassword'
      }
  });
  
  transporter.sendMail({
      from: 'myEmailAddress',
      to: 'someAddress',
      subject: 'Subject',
      html: 'Some HTML code here'
  }, function(error, info){
      if(error){
          console.log(error);
      }
  });
  </code></pre>
  
  <p>And the error is as follows:</p>
  
  <blockquote>
    <p>{ [Error: Invalid login: 535 authorization failed (#5.7.0)]
      code: 'EAUTH',
      response: '535 authorization failed (#5.7.0)',
      responseCode: 535 }</p>
  </blockquote>
  
  <p>I'm sure the credentials are correct. I get  the same error also on ports 465 and 587.
  Any help will be appreciated. Thanks.</p>