freescout-help-desk / freescout

FreeScout — Free self-hosted help desk & shared mailbox (Zendesk / Help Scout alternative)
https://freescout.net
GNU Affero General Public License v3.0
2.94k stars 484 forks source link

Undefined array key "auth_mode" - emails not sending #4103

Closed kaitwalla closed 2 months ago

kaitwalla commented 3 months ago

Log entry:

Send error. Undefined array key "auth_mode". Message-ID: notify-350-2-1719416387@technicalpenguins.com

I think line 34 of overrides/laravel/framework/src/Illuminate/Mail/TransportManager.php is assuming an array key "auth_mode" that's not always set. Sending emails did not work at all, but I didn't realize it until I went to go send a test message and saw the error mentioned in the title.

I did a q&d fix of

$transport = new SmtpTransport($config['host'], $config['port'], null, $config['auth_mode'] ?? null);

but wanted to put this out there in case anyone else encountered issues or there was a more systemic fix that made sense.

PHP version: 8.3.8 FreeScout version: 1.8.145 Database: MySQL Are you using CloudFlare: No Are you using non-official modules: No