![]() |
[Email Library] - Failed to send AUTH LOGIN command - Encryption Needed - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Development (https://forum.codeigniter.com/forumdisplay.php?fid=6) +--- Forum: CodeIgniter 3.x (https://forum.codeigniter.com/forumdisplay.php?fid=17) +--- Thread: [Email Library] - Failed to send AUTH LOGIN command - Encryption Needed (/showthread.php?tid=64937) |
[Email Library] - Failed to send AUTH LOGIN command - Encryption Needed - mstojanov - 04-13-2016 Hi. Today i go some problem with the email library where the server does not support SMTP plain text auth. PHP Code: $config['useragent'] = "CodeIgniter"; This is the current configuration. When echo the email print debugger the following error occurs: Failed to send AUTH LOGIN command.Error 535 5.7.8 Error: Authentication failed:encryption needed to use mechanism. I was able to see in the email library Codeigniter use AUTH LOGIN with unencrypted BASE64 encoding. To support full web standards, Codeigniter should be able to use CRAM-MD5 or DIGEST-MD5 for SMTP authentication. Any suggestions how this problem could be solved or possible Codeigniter bug? Thanks. RE: [Email Library] - Failed to send AUTH LOGIN command - Encryption Needed - ivantcholakov - 04-13-2016 1. Change/add these settings: Code: $config['smtp_host'] = 'domain.com'; 2. I am not capable to mess with the original email library, this area of knowledge is complex. I can see too that the email library uses AUTH LOGIN. If you are sure that this prevents connection, I am able to suggest a workaround. PHPMailer uses CRAM-MD5 https://github.com/PHPMailer/PHPMailer/blob/v5.2.14/class.smtp.php#L392 For keeping the original CodeIgniter Email API and not rewriting your code, you can install and try a library that I support: https://github.com/ivantcholakov/codeigniter-phpmailer , It simply replaces the mailer engine. RE: [Email Library] - Failed to send AUTH LOGIN command - Encryption Needed - mstojanov - 04-14-2016 Hi. Thanks for the reply. The first solution dont work. Will check with the codeigniter-phpmailer library. But i think workaround should be good. Regards. RE: [Email Library] - Failed to send AUTH LOGIN command - Encryption Needed - ivantcholakov - 04-14-2016 Apply 1. and 2. |