Sunday, 16 April 2017

ZOHO: Error: Invalid login: 535 Authentication Failed nodemailer localhost

I'm trying to send email using nodemailer and Zoho mail from localhost but it only shows that authentication failed. Here's the code I'm using

   var transporter = nodemailer.createTransport({
      service: 'Zoho',
      auth: {
        user: 'oneOfMyAccounts@myDomain.com',
        pass: 'mypass'
      }
    });

this is not the primary account, it's an account I've created using the admin account.

Does anyone knows if I need to config anything else to make it works? I already verified my domain I'm able to access this account on zoho mail site but when it comes to send email using nodemailer, it says that authentication failed.

p.s.: if I change the service to Hotmail it works properly, so the problem probably is related to the Zoho service or my zoho account configuration

Thanks in advance.



via Elmer Dantas

No comments:

Post a Comment