Skip to content
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

Email is not sent #16

Open
alex1897 opened this issue May 24, 2022 · 4 comments
Open

Email is not sent #16

alex1897 opened this issue May 24, 2022 · 4 comments

Comments

@alex1897
Copy link

I implemented the package on my local machine with sail. Everything seemed fine and I was able to receive the mails after changing the email address.

Once I uploaded it on my server, nothing happened after the email is changed. In the pending_user_emails table the entry with the new email is adde, but the mail is missing. No error message and nothing in the log.

First I thought mailing is not working at all, but the laravel Breeze emails are being sent out.

On my server I have PHP 8.1.5 and Laravel is on Version 9.2.

And idea what I should/can check to find the issue?

@alex1897 alex1897 changed the title E-mail is not sent Email is not sent May 24, 2022
@HayderThamer92
Copy link

True. Vote +1

@jimsawinner
Copy link

Any updates on this issue? I seem to be having this issue also, this was working OK on PHP7.4 and Laravel 7. But I updated to PHP8.1 with Laravel 8 and now the package seems not to be sending the new email verifications.

@jimsawinner
Copy link

For anyone that is having this issue I have found the cause (and potentially the solution). @alex1897 @HayderThamer92

The mailable class is implementing ShouldQueue which means the mail is being queued in the jobs table (check your database table jobs).

Which means the email will only send once the job has been dispatched - try running php artisan queue:work

Let me know if this helps

@Fradd747
Copy link

To extend @jimsawinner answer. The mail is added to the queue ("jobs" table in db) and it's waiting for a worker to dispatch it. On local dev, you can use artisan queue:work command to start a worker manually, although you'll need to set up a supervisor service on your production server. More info can be found here https://laravel.com/docs/10.x/queues#supervisor-configuration.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants