![]() |
SMTP EMail sending issue - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: CodeIgniter 4 (https://forum.codeigniter.com/forumdisplay.php?fid=28) +--- Forum: CodeIgniter 4 Support (https://forum.codeigniter.com/forumdisplay.php?fid=30) +--- Thread: SMTP EMail sending issue (/showthread.php?tid=88950) |
SMTP EMail sending issue - cycyx - 12-07-2023 Heya, We're transitioning vom our old Windows Server running Xampp, PHP 7.4 with Codeigniter 3 to our new Windows Server running Xampp, PHP 8.1 with Codeigniter 4. Both servers are within the same network. I've spent around an insane amount of hours re-writing the 50,000+ lines of PHP, but nothing compares to how much time I've wasted with getting a simple E-mail to send... Here is the error I'm getting, with personalised data replaced with crap like domain.com. The configs are 100% identical to the CI3 version. Username, password etc is 100000% correct. It could be a Windows issue, a PHP8.1 issue or a CI4 issue. I just can't figure this out. Spent around 6 hours on troubleshooting and now given up and hoping someone has experienced this before. Code: Unable to send email using SMTP. Your server might not be configured to send mail using this method. Code: <?php RE: SMTP EMail sending issue - kenjis - 12-07-2023 'ssl://mail.domain.com' is not a hostname. RE: SMTP EMail sending issue - cycyx - 12-08-2023 ffs, haha. In CI3 the smtp host was ssl://mail.domain.com, but in CI4 it needs to be mail.domain.com That was an embarrassingly easy fix... Thanks for saving my sanity and now I'll have to have a stiff drink to wipe my memory of all of this. Thanks! RE: SMTP EMail sending issue - davis.lasis - 12-08-2023 (12-08-2023, 08:52 AM)cycyx Wrote: ffs, haha. Woderfull response. Love it. I guess we all been there... RE: SMTP EMail sending issue - kenjis - 12-08-2023 Drinking too much alcohol may harm your health. > The configs are 100% identical to the CI3 version. It seems there are incompatible changes in the Email behavior. So it should be documented in Upgrading Guide. I sent a PR: https://github.com/codeigniter4/CodeIgniter4/pull/8310 Thank you for reporting. |