Email sending error

Does this make any sense to anyone?

[2021-04-05 23:56:03] production.ERROR: Call to a member function getValue() on null {"userId":1,"exception":"[object] (Error(code: 0): Call to a member function getValue() on null at /var/www/clients/client1/web17/web/app/Helpers/Mail/GmailTransport.php:50)
[stacktrace]
#0 /var/www/clients/client1/web17/web/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Mailer.php(71): App\\Helpers\\Mail\\GmailTransport->send(Object(Swift_Message), Array)
#1 /var/www/clients/client1/web17/web/vendor/laravel/framework/src/Illuminate/Mail/Mailer.php(521): Swift_Mailer->send(Object(Swift_Message), Array)
#2 /var/www/clients/client1/web17/web/vendor/laravel/framework/src/Illuminate/Mail/Mailer.php(288): Illuminate\\Mail\\Mailer->sendSwiftMessage(Object(Swift_Message))
#3 /var/www/clients/client1/web17/web/vendor/laravel/framework/src/Illuminate/Mail/Mailable.php(186): Illuminate\\Mail\\Mailer->send('email.template....', Array, Object(Closure))
#4 /var/www/clients/client1/web17/web/vendor/laravel/framework/src/Illuminate/Support/Traits/Localizable.php(19): Illuminate\\Mail\\Mailable->Illuminate\\Mail\\{closure}()
#5 /var/www/clients/client1/web17/web/vendor/laravel/framework/src/Illuminate/Mail/Mailable.php(187): Illuminate\\Mail\\Mailable->withLocale(NULL, Object(Closure))
#6 /var/www/clients/client1/web17/web/vendor/laravel/framework/src/Illuminate/Mail/Mailer.php(304): Illuminate\\Mail\\Mailable->send(Object(Illuminate\\Mail\\Mailer))
#7 /var/www/clients/client1/web17/web/vendor/laravel/framework/src/Illuminate/Mail/Mailer.php(258): Illuminate\\Mail\\Mailer->sendMailable(Object(App\\Mail\\TemplateEmail))
#8 /var/www/clients/client1/web17/web/vendor/laravel/framework/src/Illuminate/Mail/PendingMail.php(121): Illuminate\\Mail\\Mailer->send(Object(App\\Mail\\TemplateEmail))
#9 /var/www/clients/client1/web17/web/app/Jobs/Mail/NinjaMailerJob.php(90): Illuminate\\Mail\\PendingMail->send(Object(App\\Mail\\TemplateEmail))
#10 /var/www/clients/client1/web17/web/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(36): App\\Jobs\\Mail\\NinjaMailerJob->handle()
#11 /var/www/clients/client1/web17/web/vendor/laravel/framework/src/Illuminate/Container/Util.php(40): Illuminate\\Container\\BoundMethod::Illuminate\\Container\\{closure}()
#12 /var/www/clients/client1/web17/web/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(93): Illuminate\\Container\\Util::unwrapIfClosure(Object(Closure))
#13 /var/www/clients/client1/web17/web/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(37): Illuminate\\Container\\BoundMethod::callBoundMethod(Object(Illuminate\\Foundation\\Application), Array, Object(Closure))
#14 /var/www/clients/client1/web17/web/vendor/laravel/framework/src/Illuminate/Container/Container.php(610): Illuminate\\Container\\BoundMethod::call(Object(Illuminate\\Foundation\\Application), Array, Array, NULL)
#15 /var/www/clients/client1/web17/web/vendor/laravel/framework/src/Illuminate/Bus/Dispatcher.php(128): Illuminate\\Container\\Container->call(Array)
#16 /var/www/clients/client1/web17/web/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(128): Illuminate\\Bus\\Dispatcher->Illuminate\\Bus\\{closure}(Object(App\\Jobs\\Mail\\NinjaMailerJob))
#17 /var/www/clients/client1/web17/web/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(103): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(App\\Jobs\\Mail\\NinjaMailerJob))
#18 /var/www/clients/client1/web17/web/vendor/laravel/framework/src/Illuminate/Bus/Dispatcher.php(132): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#19 /var/www/clients/client1/web17/web/vendor/laravel/framework/src/Illuminate/Queue/CallQueuedHandler.php(118): Illuminate\\Bus\\Dispatcher->dispatchNow(Object(App\\Jobs\\Mail\\NinjaMailerJob), false)
#20 /var/www/clients/client1/web17/web/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(128): Illuminate\\Queue\\CallQueuedHandler->Illuminate\\Queue\\{closure}(Object(App\\Jobs\\Mail\\NinjaMailerJob))
#21 /var/www/clients/client1/web17/web/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(103): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(App\\Jobs\\Mail\\NinjaMailerJob))
#22 /var/www/clients/client1/web17/web/vendor/laravel/framework/src/Illuminate/Queue/CallQueuedHandler.php(120): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#23 /var/www/clients/client1/web17/web/vendor/laravel/framework/src/Illuminate/Queue/CallQueuedHandler.php(70): Illuminate\\Queue\\CallQueuedHandler->dispatchThroughMiddleware(Object(Illuminate\\Queue\\Jobs\\SyncJob), Object(App\\Jobs\\Mail\\NinjaMailerJob))
#24 /var/www/clients/client1/web17/web/vendor/laravel/framework/src/Illuminate/Queue/Jobs/Job.php(98): Illuminate\\Queue\\CallQueuedHandler->call(Object(Illuminate\\Queue\\Jobs\\SyncJob), Array)
#25 /var/www/clients/client1/web17/web/vendor/laravel/framework/src/Illuminate/Queue/SyncQueue.php(43): Illuminate\\Queue\\Jobs\\Job->fire()
#26 /var/www/clients/client1/web17/web/vendor/laravel/framework/src/Illuminate/Bus/Dispatcher.php(251): Illuminate\\Queue\\SyncQueue->push(Object(App\\Jobs\\Mail\\NinjaMailerJob))
#27 /var/www/clients/client1/web17/web/vendor/laravel/framework/src/Illuminate/Bus/Dispatcher.php(227): Illuminate\\Bus\\Dispatcher->pushCommandToQueue(Object(Illuminate\\Queue\\SyncQueue), Object(App\\Jobs\\Mail\\NinjaMailerJob))
#28 /var/www/clients/client1/web17/web/vendor/laravel/framework/src/Illuminate/Bus/Dispatcher.php(77): Illuminate\\Bus\\Dispatcher->dispatchToQueue(Object(App\\Jobs\\Mail\\NinjaMailerJob))
#29 /var/www/clients/client1/web17/web/vendor/laravel/framework/src/Illuminate/Foundation/Bus/PendingDispatch.php(202): Illuminate\\Bus\\Dispatcher->dispatch(Object(App\\Jobs\\Mail\\NinjaMailerJob))
#30 /var/www/clients/client1/web17/web/vendor/laravel/framework/src/Illuminate/Foundation/Bus/Dispatchable.php(17): Illuminate\\Foundation\\Bus\\PendingDispatch->__destruct()
#31 /var/www/clients/client1/web17/web/app/Jobs/Entity/EmailEntity.php(117): App\\Jobs\\Mail\\NinjaMailerJob::dispatch(Object(App\\Jobs\\Mail\\NinjaMailerObject))
#32 /var/www/clients/client1/web17/web/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(36): App\\Jobs\\Entity\\EmailEntity->handle()
#33 /var/www/clients/client1/web17/web/vendor/laravel/framework/src/Illuminate/Container/Util.php(40): Illuminate\\Container\\BoundMethod::Illuminate\\Container\\{closure}()
#34 /var/www/clients/client1/web17/web/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(93): Illuminate\\Container\\Util::unwrapIfClosure(Object(Closure))
#35 /var/www/clients/client1/web17/web/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(37): Illuminate\\Container\\BoundMethod::callBoundMethod(Object(Illuminate\\Foundation\\Application), Array, Object(Closure))
#36 /var/www/clients/client1/web17/web/vendor/laravel/framework/src/Illuminate/Container/Container.php(610): Illuminate\\Container\\BoundMethod::call(Object(Illuminate\\Foundation\\Application), Array, Array, NULL)
#37 /var/www/clients/client1/web17/web/vendor/laravel/framework/src/Illuminate/Bus/Dispatcher.php(128): Illuminate\\Container\\Container->call(Array)
#38 /var/www/clients/client1/web17/web/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(128): Illuminate\\Bus\\Dispatcher->Illuminate\\Bus\\{closure}(Object(App\\Jobs\\Entity\\EmailEntity))
#39 /var/www/clients/client1/web17/web/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(103): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(App\\Jobs\\Entity\\EmailEntity))
#40 /var/www/clients/client1/web17/web/vendor/laravel/framework/src/Illuminate/Bus/Dispatcher.php(132): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#41 /var/www/clients/client1/web17/web/vendor/laravel/framework/src/Illuminate/Queue/CallQueuedHandler.php(118): Illuminate\\Bus\\Dispatcher->dispatchNow(Object(App\\Jobs\\Entity\\EmailEntity), false)
#42 /var/www/clients/client1/web17/web/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(128): Illuminate\\Queue\\CallQueuedHandler->Illuminate\\Queue\\{closure}(Object(App\\Jobs\\Entity\\EmailEntity))
#43 /var/www/clients/client1/web17/web/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(103): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(App\\Jobs\\Entity\\EmailEntity))
#44 /var/www/clients/client1/web17/web/vendor/laravel/framework/src/Illuminate/Queue/CallQueuedHandler.php(120): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#45 /var/www/clients/client1/web17/web/vendor/laravel/framework/src/Illuminate/Queue/CallQueuedHandler.php(70): Illuminate\\Queue\\CallQueuedHandler->dispatchThroughMiddleware(Object(Illuminate\\Queue\\Jobs\\SyncJob), Object(App\\Jobs\\Entity\\EmailEntity))
#46 /var/www/clients/client1/web17/web/vendor/laravel/framework/src/Illuminate/Queue/Jobs/Job.php(98): Illuminate\\Queue\\CallQueuedHandler->call(Object(Illuminate\\Queue\\Jobs\\SyncJob), Array)
#47 /var/www/clients/client1/web17/web/vendor/laravel/framework/src/Illuminate/Queue/SyncQueue.php(43): Illuminate\\Queue\\Jobs\\Job->fire()
#48 /var/www/clients/client1/web17/web/vendor/laravel/framework/src/Illuminate/Queue/SyncQueue.php(147): Illuminate\\Queue\\SyncQueue->push(Object(App\\Jobs\\Entity\\EmailEntity), '', NULL)
#49 /var/www/clients/client1/web17/web/vendor/laravel/framework/src/Illuminate/Bus/Dispatcher.php(248): Illuminate\\Queue\\SyncQueue->later(Object(Illuminate\\Support\\Carbon), Object(App\\Jobs\\Entity\\EmailEntity))
#50 /var/www/clients/client1/web17/web/vendor/laravel/framework/src/Illuminate/Bus/Dispatcher.php(227): Illuminate\\Bus\\Dispatcher->pushCommandToQueue(Object(Illuminate\\Queue\\SyncQueue), Object(App\\Jobs\\Entity\\EmailEntity))
#51 /var/www/clients/client1/web17/web/vendor/laravel/framework/src/Illuminate/Bus/Dispatcher.php(77): Illuminate\\Bus\\Dispatcher->dispatchToQueue(Object(App\\Jobs\\Entity\\EmailEntity))
#52 /var/www/clients/client1/web17/web/vendor/laravel/framework/src/Illuminate/Foundation/Bus/PendingDispatch.php(202): Illuminate\\Bus\\Dispatcher->dispatch(Object(App\\Jobs\\Entity\\EmailEntity))
#53 /var/www/clients/client1/web17/web/app/Http/Controllers/EmailController.php(135): Illuminate\\Foundation\\Bus\\PendingDispatch->__destruct()
#54 /var/www/clients/client1/web17/web/vendor/laravel/framework/src/Illuminate/Collections/Traits/EnumeratesValues.php(234): App\\Http\\Controllers\\EmailController->App\\Http\\Controllers\\{closure}(Object(App\\Models\\InvoiceInvitation), 0)
#55 /var/www/clients/client1/web17/web/app/Http/Controllers/EmailController.php(139): Illuminate\\Support\\Collection->each(Object(Closure))
#56 /var/www/clients/client1/web17/web/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\\Http\\Controllers\\EmailController->send(Object(App\\Http\\Requests\\Email\\SendEmailRequest))
#57 /var/www/clients/client1/web17/web/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(45): Illuminate\\Routing\\Controller->callAction('send', Array)
#58 /var/www/clients/client1/web17/web/vendor/laravel/framework/src/Illuminate/Routing/Route.php(254): Illuminate\\Routing\\ControllerDispatcher->dispatch(Object(Illuminate\\Routing\\Route), Object(App\\Http\\Controllers\\EmailController), 'send')
#59 /var/www/clients/client1/web17/web/vendor/laravel/framework/src/Illuminate/Routing/Route.php(197): Illuminate\\Routing\\Route->runController()
#60 /var/www/clients/client1/web17/web/vendor/laravel/framework/src/Illuminate/Routing/Router.php(693): Illuminate\\Routing\\Route->run()
#61 /var/www/clients/client1/web17/web/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(128): Illuminate\\Routing\\Router->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#62 /var/www/clients/client1/web17/web/app/Http/Middleware/UserVerified.php(43): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#63 /var/www/clients/client1/web17/web/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(167): App\\Http\\Middleware\\UserVerified->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#64 /var/www/clients/client1/web17/web/app/Http/Middleware/Locale.php(34): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#65 /var/www/clients/client1/web17/web/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(167): App\\Http\\Middleware\\Locale->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#66 /var/www/clients/client1/web17/web/app/Http/Middleware/TokenAuth.php(83): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#67 /var/www/clients/client1/web17/web/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(167): App\\Http\\Middleware\\TokenAuth->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#68 /var/www/clients/client1/web17/web/app/Http/Middleware/SetDb.php(40): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#69 /var/www/clients/client1/web17/web/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(167): App\\Http\\Middleware\\SetDb->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#70 /var/www/clients/client1/web17/web/app/Http/Middleware/Cors.php(34): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#71 /var/www/clients/client1/web17/web/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(167): App\\Http\\Middleware\\Cors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#72 /var/www/clients/client1/web17/web/app/Http/Middleware/QueryLogging.php(38): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#73 /var/www/clients/client1/web17/web/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(167): App\\Http\\Middleware\\QueryLogging->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#74 /var/www/clients/client1/web17/web/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#75 /var/www/clients/client1/web17/web/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(167): Illuminate\\Routing\\Middleware\\SubstituteBindings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#76 /var/www/clients/client1/web17/web/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(127): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#77 /var/www/clients/client1/web17/web/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(63): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequest(Object(Illuminate\\Http\\Request), Object(Closure), Array)
#78 /var/www/clients/client1/web17/web/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(167): Illuminate\\Routing\\Middleware\\ThrottleRequests->handle(Object(Illuminate\\Http\\Request), Object(Closure), '300', '1')
#79 /var/www/clients/client1/web17/web/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(103): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#80 /var/www/clients/client1/web17/web/vendor/laravel/framework/src/Illuminate/Routing/Router.php(695): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#81 /var/www/clients/client1/web17/web/vendor/laravel/framework/src/Illuminate/Routing/Router.php(670): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#82 /var/www/clients/client1/web17/web/vendor/laravel/framework/src/Illuminate/Routing/Router.php(636): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#83 /var/www/clients/client1/web17/web/vendor/laravel/framework/src/Illuminate/Routing/Router.php(625): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#84 /var/www/clients/client1/web17/web/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(166): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#85 /var/www/clients/client1/web17/web/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(128): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#86 /var/www/clients/client1/web17/web/app/Http/Middleware/Cors.php(34): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#87 /var/www/clients/client1/web17/web/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(167): App\\Http\\Middleware\\Cors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#88 /var/www/clients/client1/web17/web/vendor/fideloper/proxy/src/TrustProxies.php(57): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#89 /var/www/clients/client1/web17/web/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(167): Fideloper\\Proxy\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#90 /var/www/clients/client1/web17/web/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#91 /var/www/clients/client1/web17/web/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(167): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#92 /var/www/clients/client1/web17/web/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#93 /var/www/clients/client1/web17/web/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(167): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#94 /var/www/clients/client1/web17/web/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#95 /var/www/clients/client1/web17/web/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(167): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#96 /var/www/clients/client1/web17/web/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(86): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#97 /var/www/clients/client1/web17/web/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(167): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#98 /var/www/clients/client1/web17/web/vendor/sentry/sentry-laravel/src/Sentry/Laravel/Tracing/Middleware.php(46): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#99 /var/www/clients/client1/web17/web/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(167): Sentry\\Laravel\\Tracing\\Middleware->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#100 /var/www/clients/client1/web17/web/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(103): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#101 /var/www/clients/client1/web17/web/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(141): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#102 /var/www/clients/client1/web17/web/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(110): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#103 /var/www/clients/client1/web17/web/public/index.php(57): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#104 {main}
"}

Here is my mail.php file edits:

 'mailers' => [
        'smtp' => [
            'transport' => 'smtp',
            'host' => env('MAIL_HOST', 'smtp.google.com'),
            'port' => env('MAIL_PORT', 587),
            'encryption' => env('MAIL_ENCRYPTION', 'tls'),
            'username' => env('noname@email.org'),
            'password' => env('password'),
            'timeout' => null,
            'auth_mode' => null,
        ],

This is the env file for mail:

MAIL_MAILER=gmail *also used smtp with no glory*
MAIL_HOST=smtp.gmail.com
MAIL_PORT=587
MAIL_USERNAME=noname@email.org
MAIL_PASSWORD=youwishmypasswordwashere
MAIL_ENCRYPTION=tls
MAIL_FROM_ADDRESS=noname@email.org
MAIL_FROM_NAME=RDCClouds

HI,

You shouldn’t have to make any changes in mail.php

The info here may help:

https://invoiceninja.github.io/docs/self-host-troubleshooting/

I will change it back and see what happens. Most of the time I get 500 Server error or timeoutexception 30

Changed back to the normal mail.php and get 500 Server Error

You will have to zoom in. I had to enlarge my screen to get the full message. It is an autherror

It it’s an auth error it’s most likely related to the email credentials, maybe try testing with a different provider?

Note: you may want to re-install the app to reverse any changes you’ve made, these lines would break the app.

        'username' => env('noname@email.org'),
        'password' => env('password'),

dumped my previous self hosted version when the updates failed, but now with the softaculous install of 5.1.42 the emails dont send out. have followed all your links and info, but nothing works AGAIN… this is my env file -

env

(couldnt find any “log” item in the database, but found an "Activity log which shows an error -


This error refers to - “Address in mailbox given [] does not comply with RFC 2822, 3.6.2.”
so have tried every combination i can think of in the ENV file to fix the email settings. There must be a simpler way of being able to set the email settings up, how about having an option somewhere in “Settings” to configure E-Mail servers etc as necessary??

After changing the .env are you running php artisan optimize, it’s needed to update the cache.

You can check a value by running php artisan tinker and then config('__key__');

done, that, now there is this error -
TimeoutException after 0:00:30.000000: Future not completed

and you cant close this error

Are there any details about the error in the web server error logs or the app logs in storage/logs/?

I found the error for this as a timeout with the localhost not working, and changed to full dns entry and it seemed to work, but no email and no error just activity 6 in the DB activity records.

just received the email now. took ages to get delivered. will monitor this to see what is happening. how can i force a version update on shared hosting using the softaculous install as i dont have an option to update from the dashboard (only health check etc) in the laravel log, it shows -
production.INFO: latest version = 5.1.47

can i not force the update?

If you install the app through Softaculous they provide their own update process.

Thanks for your inputs, will need to play with a git install as well, so i can see if the latest updates fix bugs (like the email custom template)