Email verification message not being sent straight away #11569
Replies: 3 comments 9 replies
-
Did you implement MustVerifyEmail interface? |
Beta Was this translation helpful? Give feedback.
-
check you queue driver, it may be set to database or something else |
Beta Was this translation helpful? Give feedback.
-
The reason why verification emails are not being sent at first is because the verification mail sending is triggered on registration, not when you go into the email verification page. As you can see in vendor/filament/filament/src/Pages/Auth/Register.php, there is a function called "sendEmailVerificationNotification" that gets called right at the register method:
You can implement your own logic and trigger the send by simply doing this using the user model: $user->sendEmailVerificationNotification(); So basically, it works correctly for new registrations after you have implemented MustVerifyEmail, but for older users that were created without the trait they will have this problem, so maybe you can try a workaround for old users that triggers the method manually. |
Beta Was this translation helpful? Give feedback.
-
Package
Panel builder
Package Version
v3.2.34
How can we help you?
When I enable email verification the user sees the correct prompt when they log in:
But the email is never sent through first time so the user always has to click the resend link.
As soon as they do this the whole process works perfectly.
My
AdminPanelProvider
class:Any ideas?
Beta Was this translation helpful? Give feedback.
All reactions