Open PP-JN-RL opened 3 months ago
All of the mail within the system uses the same settings, so not really sure why some mail would come through fine and others would not.
Are there any additional checks happening when a user requests an item? Because this is when it throws an error 500. If so, is there a way to turn those checks off?
No, nothing extra. Everything in the system uses the triggers in the app/Notifications
:
The test email button uses this API controller:
Which just calls this code:
Thank you for the additional info, I will look into this and report back.
What I found so far: It seems to work when the email is fired via a background task, i.e. low inventory alerts that come through at midnight. Anything triggered via the UI fails.
How are the mail notifications called that run as background tasks? Can I trigger them manually for testing?
Might be related: https://github.com/snipe/snipe-it/issues/13872
Debug mode
Describe the bug
I am using the latest docker version of snipe-it and are experiencing some issues using the email notifications. The environment variables for the email settings are as follows:
When testing the email function in the settings page I get the following error:
However, we receive stock alerts every night completely fine without any issues.
I could live with that error but the issue is that when a user tries to request an item, the webserver throws an error 500 because the email settings are not correct.
Any advice would be greatly appreciated.
Reproduction steps
Expected behavior
Test should be successful as the email notifications for low stock get delivered correctly.
Screenshots
No response
Snipe-IT Version
v6.3.3 build 12903 (g0f63fa23e)
Operating System
Docker
Web Server
Docker
PHP Version
v6.3.3 build 12903 (g0f63fa23e)
Operating System
Windows 11
Browser
Edge
Version
Version 122.0.2365.92 (Official build) (64-bit)
Device
No response
Operating System
No response
Browser
No response
Version
No response
Error messages
No error message present in debug mode when pressing the "Sent Test" button but when i try to request an item it fails with the following:
Additional context
No response