Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[AUTHENTICATIONFAILED] LOGIN Invalid credentials #246

Open
jigneshhadiya2 opened this issue Aug 15, 2024 · 0 comments
Open

[AUTHENTICATIONFAILED] LOGIN Invalid credentials #246

jigneshhadiya2 opened this issue Aug 15, 2024 · 0 comments

Comments

@jigneshhadiya2
Copy link

A: connecting to server imap.mail.yahoo.com:993 - secure: true, timeout: 0:00:20.000000
S: * OK Welcome! IMAP Server up and ready to accept your request
C: a0 LOGIN "*****@yahoo.com" "(password scrambled)"
S: a0 NO [AUTHENTICATIONFAILED] LOGIN Invalid credentials
[ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: [AUTHENTICATIONFAILED] LOGIN Invalid credentials

this is my code snippet

Future<void> connectAndFetchYahooEmails() async {
   final client = ImapClient(isLogEnabled: true);

   await client.connectToServer('imap.mail.yahoo.com', 993, isSecure: true);

   final loginResponse = await client.login('***@yahoo.com', '*****');
   
   await client.selectInbox();

   final fetchResult = await client.fetchRecentMessages(
       messageCount: 10, criteria: 'BODY.PEEK[]');

   await client.logout();
 }
@jigneshhadiya2 jigneshhadiya2 changed the title https://github.com/Enough-Software/enough_mail/issues/245 [AUTHENTICATIONFAILED] LOGIN Invalid credentials Aug 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant