Force PHPMailer Authentication to use LOGIN instead of CRAM
Brought to you by:
jberanek
I am using mrbs from the default branch (downloaded 2 days ago). With my provider on SSL smtp emails the handshake offers CRAM-MD5 first butauthentication always failes with a userid problem. With the same userid/password when i force PHPMailer to use LOGIN authentication, my email works ok. To force LOGIN authentication I made the following change:
patch to make encrypted ssl email working with my provider and force LOGIN authentication
in /lib/PHPMaler/src/smtp.php new line 469
return false; }
---> $authtype = 'LOGIN'; // add this single line between above and below code
$this->edebug('Auth method requested: ' . ($authtype ?: 'UNSPECIFIED'), self::DEBUG_LOWLEVEL); $this->edebug( 'Auth methods available on the server: ' . implode(',', $this->server_caps['AUTH']), self::DEBUG_LOWLEVEL );
even with 1.9.2 mrbs above path is still needed to make ssl email work with my provider