![]() |
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
'ssl://mail.domain.com' is not a hostname.
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!
(12-08-2023, 08:52 AM)cycyx Wrote: ffs, haha. Woderfull response. Love it. I guess we all been there...
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. |
Welcome Guest, Not a member yet? Register Sign In |