title: SMTP Error: 535 5.7.8 Authentication credentials invalid
body: <p>I am using jango smtp setting in my project.</p>
  
  <p>Below is my code:</p>
  
  <pre><code>funcation sendmail()
  {
  
  $this-&gt;Email-&gt;smtpOptions = array(
  
    'timeout' =&gt; '30',
  
    'port' =&gt; '25', 
  
    'host' =&gt; 'relay.jangosmtp.net',
  
    'username' =&gt; 'xxxx',
  
    'password' =&gt; '1234567'
  
  );
  }
  </code></pre>
  
  <p>sendmail function gives the following error:</p>
  
  <pre><code>SMTP Error: 535 5.7.8 Authentication credentials invalid
  </code></pre>
  
  <p>What may be the reason?</p>