bcit-ci / CodeIgniter

Open Source PHP Framework (originally from EllisLab)
https://codeigniter.com/
MIT License
18.27k stars 7.6k forks source link

Email library does not send email through SMTP on PHP 8.2 #6243

Open DimitriyKuschel opened 1 year ago

DimitriyKuschel commented 1 year ago

When trying to send email through the SMTP via Email library getting following output:

220 mail.adm.tools ESMTP ready hello: 501 5.5.4 Invalid argument The following SMTP error was encountered: 501 5.5.4 Invalid argument Unable to send email using PHP SMTP. Your server might not be configured to send mail using this method.

SMTP settings are correct, PHPMailer can send email with the same settings and the same content without any issues. Code to send email with codeigniter 3.1.13 works fine on PHP 7.4 without any change.