chirag04 / mail-listener2

Mail listener library for node.js. Get notification when new email arrived.
MIT License
246 stars 116 forks source link

{ [Error: No supported authentication method(s) available. Unable to login.] source: 'authentication' } #50

Open jonesprabu opened 9 years ago

jonesprabu commented 9 years ago

I am getting this error when i try to connect with zoho mail using mail-listener2, But i can able to connect and read mail from my application using node-imap. Please help me on this issue.

The config param i am using with node-imap is as below

var imap = new Imap({ user: nconf.get('IMAP_USER'), password: nconf.get('IMAP_PASS'), host: nconf.get('IMAP_HOST'), port: nconf.get('IMAP_PORT'), connTimeout: 10000000, tls: true });

Same param i am using with mail-listener2 but getting the below error

{ [Error: No supported authentication method(s) available. Unable to login.] source: 'authentication' }

aaronbriel commented 8 years ago

I'm seeing this issue as well, using the same parameters that are successful with node-imap and also imap-simple. Is it required to use an app token for IMAP_PASS? Thanks

NeverLuckyLiu commented 5 years ago

There is a small difference between node-imap and mail-listener2 in the config. In node-imap, the user field is "user", while in mail-listener2 it is "username".