No email notification on v7.7.1 #4616
Replies: 6 comments
|
smtp and sendmail, sorry for the typo. |
|
The command can exit with no output even when it is working, so I would split this into two checks: whether Lychee has anything to send, and whether Laravel mail is configured. From the current source, Then it loops over users with an email address and over their unread database notifications. It only calls For the mail side, current
So I would not start with SSL/sendmail yet. First prove the command has pending Lychee notifications and can write the log-mail output. If this resolves it, please mark the answer as accepted so others can find the same checklist. |
|
Thanks for quick respond!
|
|
Thanks, that points to two narrower checks. One correction to my earlier wording: I would not use The bigger thing is that the notification command is silent unless there are unread database notifications. The upload path sends So I would check this next inside the same Lychee container: php artisan tinker --execute='dump(config("mail.default"), config("mail.mailers.log")); \App\Models\User::whereNotNull("email")->withCount("unreadNotifications")->get(["id","email"])->each(fn($u) => dump($u->id, $u->email, $u->unread_notifications_count));'If the unread counts are That should separate "Lychee has no pending photo notification to send" from "the mail transport is failing." |
|
Created this to help debugging: #4625 |
|
Solved. There is no laravel.log file generated when MAIL_DRIVER set to "log". I setup Sendmail it works, notification send to users after invoke command "php artisan photos_added_notification" in terminal. However admin never receive notitication, I think this is acceptable. |
Uh oh!
There was an error while loading. Please reload this page.
I follow the instruction on configuration page to set up ssl as well as sendmail, both not working. I set the MAIL_DRIVER=log. No "laravel.log" in the storage/logs/ directory. Cron jobs set, "php artisan lychee:photos_added_notification" no respond. Any clues?
All reactions