Open ReadyPlayer-Kilian opened 3 weeks ago
👋 Thanks for opening your first issue here! If you're reporting a 🐞 bug, please make sure you include steps to reproduce it. We get a lot of issues on this repo, so please be patient and we will get back to you as soon as we can.
Got the same issue on a fresh install using Ubuntu Server 24.04, no docker but is the exact problem with the green flag on the Pre-Flight screen but no email is being sent.
Using versión 7.0.2, didn't tried with the newest release
After some backtrack and doing a new fresh installI got the mail notifications working again.
We use GSuite on our domain so if that's your case as well make sure the parameters on the .env file look like this:
MAIL_MAILER=smtp MAIL_HOST=smtp.gmail.com MAIL_PORT=587 MAIL_USERNAME=example@mail.com MAIL_PASSWORD=example MAIL_FROM_ADDR=example@mail.com MAIL_FROM_NAME='Snipe-IT' MAIL_REPLYTO_ADDR=example@mail.com MAIL_REPLAYTO_NAME='Snipe-IT' MAIL_AUTO_EMBED_METHOD='attachment' MAIL_TLS_VERIFY_PEER=true
In my case the Mail Host was set as smtp-relay.gmail.com which for some reason was working on my past install of Snipe but wasn't on this new version.
Hope it helps!
Debug mode
Describe the bug
The test e-mail works in the setup and is also received. After the setup, sending the mails no longer works without having changed the settings.
The exception appears: Unauthenticated. /var/www/html/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php#82 Illuminate\Auth\AuthenticationException */ protected function unauthenticated($request, array $guards) { throw new AuthenticationException( 'Unauthenticated.', $guards, $this->redirectTo($request) ); }
And this message in Requests:
path_info: /api/v1/settings/mailtest status_code: 401 status_text: Unauthorized format: html content_type: application/json
Translated with DeepL.com (free version)
Reproduction steps
1.Installation according to instructions for Docker with SSL and MySql Container 2. 3. ...
Expected behavior
That the e-mail also works after the setup.
Screenshots
Snipe-IT Version
6.4.2
Operating System
Docker (Ubuntu)
Web Server
Docker
PHP Version
8.1.2
Operating System
Windows
Browser
Chrome
Version
No response
Device
No response
Operating System
No response
Browser
No response
Version
No response
Error messages
Unauthenticated. /var/www/html/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php#82 Illuminate\Auth\AuthenticationException */ protected function unauthenticated($request, array $guards) { throw new AuthenticationException( 'Unauthenticated.', $guards, $this->redirectTo($request) ); }
Additional context
Its a fresh install with docker