I don't found right answer, how to connect yahoo imap mail server. Other connection works (gmail, outlook, hotmail), but yahoo not.
imap_open("{imap.mail.yahoo.com:993/imap/ssl/novalidate-cert}INBOX", "email_address", "password");
Error exception:
Unknown: Retrying PLAIN authentication after [AUTHENTICATIONFAILED] AUTHENTICATE Invalid credentials (errflg=1)
I tryed without novalidate-cert, but nothing.
I found solution
Click the "Allow apps that use less secure sign in" switch
https://www.wikihow.com/Configure-Mozilla-Thunderbird-for-Yahoo!-Mail