Import Error V5

Hello,

I tried to import a company from v4.5.49 to V5.5.68.
I am getting this error:

[2023-02-08 12:50:27] production.INFO: in task statuses
[2023-02-08 12:50:27] production.INFO: finished task statuses
[2023-02-08 12:50:27] production.INFO: Importing expenses
[2023-02-08 12:51:00] production.INFO: An email must have a “From” or a “Sender” header.
[2023-02-08 12:51:00] production.ERROR: An email must have a “From” or a “Sender” header. {“userId”:1,“exception”:"[object] (Symfony\Component\Mime\Exception\LogicException(code: 0): An email must have a "From" or a "Sender" header. at /var/www/invoiceninja/vendor/symfony/mime/Message.php:81)

in .env file the variables are filled:

MAIL_MAILER=“smtp”
MAIL_HOST=“some.server”
MAIL_PORT=“587”
MAIL_USERNAME=“somename@some.server”
MAIL_PASSWORD=“xxxxxx”
MAIL_ENCRYPTION=“tls”
MAIL_FROM_ADDRESS=“somename@some.server”
MAIL_FROM_NAME=“xxxx”

I also tried with MAIL_MAILER=“log” no success.

Where can I find detailed info about how to resolve the error?

Hi,

@david can you please advise?

you may need to either clear the configuration or update it.

from the command line try

php artisan config:clear

or

php artisan optimize

this should update the configuration and the email should send appropriately.