-
-
Notifications
You must be signed in to change notification settings - Fork 3.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
E-Mails not Send #14866
Comments
👋 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 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
The text was updated successfully, but these errors were encountered: