UI is misleading when email fails to send

I just requested a password reset email and the UI implied that it had been successfully sent:

Check your inbox! You should have an email with instructions on how to reset your password.

In reality, the email had failed to send due to misconfiguration:

ERROR	▶ […] Error when sending mail: sending SMTP RCPT TO command: 550 5.1.0 […]: Sender address rejected: User unknown in virtual mailbox table, affected recipient(s): […]

Ideally when this happens, the fact of the failure should be communicated back to the user, e.g.:

Sorry, Vikunja was unable to send email. Please contact the system administrator for assistance.

Welcome! :waving_hand:

Because of the myriad of ways sending email can go wrong (and might work in the second try, or the third, or just take long, or other) we can’t really show this in the UI. As an administrator, it’s your job to check this during setup (for example, using the vikunja testmail cli command) or regularly check the logs to see if there are issues with your configuration, which it seems like you did.