I have a piece of code that connect to an IMAP and download some emails attachments. All worked flawlessy until today, and I can't figure out why, this is the error
This is the code:
Server bug: non-empty initial PLAIN challenge
In my testing environment after modify the line, all works again but when I commit and update the official environment the errors is still there.
if ($this->mbox = imap_open($this->server,$this->username,$this->password,NULL, 1, array('DISABLE_AUTHENTICATOR' => 'GSSAPI'))) ) // I added the last 3 parameters and in local env all works again.
{
imap_errors();
return "OK";
}