snipe / snipe-it

A free open source IT asset/license management system
https://snipeitapp.com
GNU Affero General Public License v3.0
10.88k stars 3.14k forks source link

Email alerts not working #10864

Open kishorkk666 opened 2 years ago

kishorkk666 commented 2 years ago

Debug mode

Describe the bug

Hi, I have configured SMTP settings in my .env file and is able to send test mails from the portal. However, email alerts for 'expiring items' are not getting received in my inbox (cron jobs are already added). I have also manually ran the commands for triggering mail alerts and can see that output is being written on the terminal but still no emails are received. Example output on terminal: There is 1 license expiring in the next 30 days.

PS: No error in laravel.log, apache error log, terminal.

Reproduction steps

  1. Configured SMTP in env and successfully sent "test mail" from portal (mail received)
  2. Run command php artisan snipeit:expiring-alerts from terminal
  3. artisan cache and config cleared
  4. Ran command on step 2 again

Expected behavior

Email should arrive in the email-address provided in alerts settings in portal.

Screenshots

sc

Snipe-IT Version

5.3.7

Operating System

Ubuntu 20.04

Web Server

Apache

PHP Version

7.4.3

Operating System

No response

Browser

No response

Version

No response

Device

No response

Operating System

No response

Browser

No response

Version

No response

Error messages

No response

Additional context

Is this a fresh install or an upgrade? Fresh What method you used to install Snipe-IT Manual Include what you've done so far in the installation, and if you got any error messages along the way No errors along the way Indicate whether or not you've manually edited any data directly in the database No

welcome[bot] commented 2 years 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.