Closed michaelortnerit closed 3 weeks ago
So i have checked again and see that i have set the environment "LEAN_EMAIL_SMTP_HOST='domain-at.mail.protection.outlook.com'. But it should be LEAN_EMAIL_SMTP_HOSTS='domain-at.mail.protection.outlook.com'
I tested it again, but same error:
[2024-10-29 02:39:57] production.CRITICAL: 4 Invalid address: (From): 'user@domain.at'
[2024-10-29 02:39:57] production.CRITICAL: 4 Invalid host: 'domain-at.mail.protection.outlook.com'
[2024-10-29 02:39:57] production.CRITICAL: 4 SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting
I found the issue it looks like it does not accept following: ' ' so i removed this and now working :D
What is your set up?
Self Hosted Docker
Version
3.2.1
Describe the issue
Configuration ENV Docker:
Reproduction steps
Additional Notes
Error:
[2024-10-29 09:24:27] production.ERROR: foreach() argument must be of type array|object, null given {"exception":"[object] (ErrorException(code: 0): foreach() argument must be of type array|object, null given at /var/www/html/vendor/illuminate/collections/Arr.php:255) [stacktrace]
0 /var/www/html/app/Core/Exceptions/HandleExceptions.php(255): Leantime\Core\Exceptions\HandleExceptions->handleError(2, 'foreach() argum...', '/var/www/html/v...', 255)
1 /var/www/html/vendor/illuminate/collections/Arr.php(255): Leantime\Core\Exceptions\HandleExceptions->Leantime\Core\Exceptions\{closure}(2, 'foreach() argum...', '/var/www/html/v...', 255)
2 /var/www/html/app/Core/Console/ConsoleKernel.php(154): Illuminate\Support\Arr::flatten(NULL)
3 /var/www/html/app/Core/Console/ConsoleKernel.php(36): Leantime\Core\Console\ConsoleKernel->commands()
4 /var/www/html/app/Core/Console/ConsoleKernel.php(253): Leantime\Core\Console\ConsoleKernel->bootstrap()
5 /var/www/html/app/Domain/Cron/Controllers/Run.php(60): Leantime\Core\Console\ConsoleKernel->call('schedule:run', Array, Object(Symfony\Component\Console\Output\BufferedOutput))
6 /var/www/html/app/Core/Events/EventDispatcher.php(470): Leantime\Domain\Cron\Controllers\Run->Leantime\Domain\Cron\Controllers\{closure}(Array)
7 /var/www/html/app/Core/Events/EventDispatcher.php(74): Leantime\Core\Events\EventDispatcher::executeHandlers(Array, 'events', 'leantime.core.h...', Array)
8 /var/www/html/app/Core/Events/DispatchesEvents.php(28): Leantime\Core\Events\EventDispatcher::dispatch_event('leantime.core.h...', Array, 'leantime.core.h...')
9 /var/www/html/app/Core/Http/HttpKernel.php(109): Leantime\Core\Http\HttpKernel::dispatch_event('request_termina...', Array)
10 /var/www/html/app/Core/Bootstrap/Bootloader.php(154): Leantime\Core\Http\HttpKernel->terminate(Object(Leantime\Core\Http\IncomingRequest), Object(Symfony\Component\HttpFoundation\Response))
11 /var/www/html/app/Core/Bootstrap/Bootloader.php(129): Leantime\Core\Bootstrap\Bootloader->handleRequest()
12 /var/www/html/public/index.php(13): Leantime\Core\Bootstrap\Bootloader->boot()
13 {main}
"} [2024-10-29 09:24:27] production.INFO: Command Output:
[2024-10-29 09:24:27] production.INFO: Cron run finished
[2024-10-29 02:24:28] production.CRITICAL: 4 Invalid address: (From): 'user@domain.at'
[2024-10-29 02:24:28] production.CRITICAL: 4 Invalid hostentry:
[2024-10-29 02:24:28] production.CRITICAL: 4 SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting