No error message when email was not sent #3175

Closed
opened 2026-02-05 08:00:23 +03:00 by OVERLORD · 1 comment
Owner

Originally created by @aviv926 on GitHub (May 21, 2024).

The bug

If a user chooses to use the e-mail message option for new users and there is a problem with the verification information of the SMTP server or another error that the message fails to be sent, a notification about this will not be displayed in the browser interface

An error message appears in the microservices logs

ERROR [ImmichMicroservices] [JobService] Unable to run job handler (notifications/notification-send-email): Error: Invalid login: 535-5.7.8 Username and Password not accepted. For more information, go to....

Edit: It actually does show an error message when I try to change a value related to machine learning or any other value in the settings, but it doesn't show an error message when trying to add a new user and the settings have been changed since they were originally set.

The OS that Immich Server is running on

Ubuntu

Version of Immich Server

v1.105.1

Version of Immich Mobile App

v1.105.1

Platform with the issue

  • Server
  • Web
  • Mobile

Your docker-compose.yml content

Default

Your .env content

Default

Reproduction steps

1. Configure sending messages via SMTP
2. Cause your SMTP server to crash **or** when there is a problem with the service of the SMTP server **or** Immich is not connected to the network
3. Create a new user and ask to send him an email notification
4. The browser interface will not display an error message

Relevant log output

No response

Additional information

No response

Originally created by @aviv926 on GitHub (May 21, 2024). ### The bug If a user chooses to use the e-mail message option for new users and there is a problem with the verification information of the SMTP server or another error that the message fails to be sent, a notification about this will not be displayed in the browser interface An error message appears in the microservices logs ` ERROR [ImmichMicroservices] [JobService] Unable to run job handler (notifications/notification-send-email): Error: Invalid login: 535-5.7.8 Username and Password not accepted. For more information, go to.... ` **Edit:** It actually does show an error message when I try to change a value related to machine learning or any other value in the settings, but it doesn't show an error message when trying to add a new user and the settings have been changed since they were originally set. ### The OS that Immich Server is running on Ubuntu ### Version of Immich Server v1.105.1 ### Version of Immich Mobile App v1.105.1 ### Platform with the issue - [ ] Server - [X] Web - [ ] Mobile ### Your docker-compose.yml content ```YAML Default ``` ### Your .env content ```Shell Default ``` ### Reproduction steps ```bash 1. Configure sending messages via SMTP 2. Cause your SMTP server to crash **or** when there is a problem with the service of the SMTP server **or** Immich is not connected to the network 3. Create a new user and ask to send him an email notification 4. The browser interface will not display an error message ``` ### Relevant log output _No response_ ### Additional information _No response_
Author
Owner

@danieldietzler commented on GitHub (Apr 1, 2025):

I don't really see the purpose of this. As you also mentioned yourself, we do verify credentials & settings when saving them, and provide feedback if they're incorrect. If the credentials later become incorrect that's not an Immich configuration issue.
Also, I'm not really sure how to show this error message in the web. Assuming we could do that, whom would you show that to? There are events we send emails out that can be triggered by non-admins, too. Surely we don't want to send them the message...?

I think logging that is the only sensible action here. If an email doesn't arrive people will go complain to the Immich admin and their first debugging step is most likely going to be to check the logs.

@danieldietzler commented on GitHub (Apr 1, 2025): I don't really see the purpose of this. As you also mentioned yourself, we do verify credentials & settings when saving them, and provide feedback if they're incorrect. If the credentials later become incorrect that's not an Immich configuration issue. Also, I'm not really sure how to show this error message in the web. Assuming we could do that, whom would you show that to? There are events we send emails out that can be triggered by non-admins, too. Surely we don't want to send them the message...? I think logging that is the only sensible action here. If an email doesn't arrive people will go complain to the Immich admin and their first debugging step is most likely going to be to check the logs.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: immich-app/immich#3175