SEND TEST EMAIL settings fail to save in Windows desktop client

Version v5.11.6-W171

Environment Windows 11 desktop clent, talking to Self-hosted v5 on Ubuntu 24.04.1

Checklist

  • Can you replicate the issue on our v5 demo site https://demo.invoiceninja.com or Invoice Ninja? Not tried
  • Have you searched existing issues? Yes
  • Have you inspected the logs in storage/logs/laravel.log for any errors? Yes, no errors

Describe the bug

I can now successfully send a test email from the desktop client using Settings > Email > Send Test Email (provided Reply-To Name is left blank as described earlier). However, if I click Save, restart the program and try again it always fails with error:

422: Unprocessable Entity • The given data was invalid.

• The smtp username field is required.
• The smtp password field is required.

Steps To Reproduce

See above

Expected Behavior

The Save function should work and the second attempt should succeed.

Hi,

Are you able to test with the React web app? It will help determine if the problem is in the desktop app or the API backend.

The web app is OK, saved changes are retained. Changing the SMTP username and password in the web app doesn’t fix them in the desktop app, however.

Thanks, that’s helpful to know.

Is the problem related to the test email functionality or saving the settings?

Settings definitely, but scheduled email sending has always been flaky so it’s hard to guess if this is a contributing factor to that or not.

Ok, thanks. I’ll try to replicate it.

One other thing to try if you have time is to check if you see the same problem in the mobile app. I’d expect you will but it would be useful to confirm.

Yes, same in mobile app

1 Like