Unable to send emails

I’ve recently been unable to send emails from Invoice Ninja. Here is an excerpt from the log file but I’m not sure what it all means. I haven’t changed any settings —that I know of.

  2023-05-03 07:21:22 App\Services\Email\Email ....................... RUNNING
  2023-05-03 07:21:25 App\Services\Email\Email2023-05-03 07:21:25,867 INFO reaped unknown pid 172 (exit status 0)
2023-05-03 07:21:25,869 INFO reaped unknown pid 173 (exit status 0)
 ............... 2,959.34ms FAIL
  2023-05-03 07:21:56 App\Services\Email\Email ....................... RUNNING
  2023-05-03 07:21:58 App\Services\Email\Email2023-05-03 07:21:58,997 INFO reaped unknown pid 217 (exit status 0)
2023-05-03 07:21:58,998 INFO reaped unknown pid 218 (exit status 0)
 ............... 2,947.37ms FAIL
  2023-05-03 07:22:59 App\Services\Email\Email ....................... RUNNING
  2023-05-03 07:23:02 App\Services\Email\Email2023-05-03 07:23:02,638 INFO reaped unknown pid 266 (exit status 0)
2023-05-03 07:23:02,639 INFO reaped unknown pid 267 (exit status 0)
 ............... 3,381.49ms FAIL

Edit: I also found this in the laravel.log

[2023-05-03 07:23:02] production.ERROR: Undefined property: stdClass::$enable_e_invoice {"exception":"[object] (ErrorException(code: 0): Undefined property: stdClass::$enable_e_invoice at /var/www/app/app/Services/Email/EmailDefaults.php:302)

Since the update to v5.5.113-C115 I have the same error: no more mails are sent!

UPDATE: I have disabled “Attach Documents” in the Email Settings and it seems to work now.

@RoundAboutWEB Yes, it sends the invoice (or quote) PDF just fine. Other attachments will be disabled. Hopefully this temporary workaround will be only necessary until the bug gets fixed.

“Attach documents” was already deactivated for me, I had to deactivate “Attach PDF”. After that, the mails were sent, but without an invoice attached.

Hi,

It may help to resave the settings in the app.

cc @david

1 Like

@hillel @RoundAboutWEB I can confirm that it worked. I have re-enabled Attach Documents and it’s still sending emails. Thanks @hillel

After I re-activated “Attach PDF” and saved the setting, the mail dispatch including the invoice in the attachment also works again.

1 Like