Customize VerifyEmail template and other login related emails
Overriding
sendEmailVerificationNotification()
in User model doesnt work as filament creates the notification directly instead of accessing the user. Could this be a bug?
How to change the template and arguments then?4 Replies
Here's our tutorial on it: https://laraveldaily.com/post/filament-customize-auth-emails-reset-password-user-verification
Not sure about Verification email specifically, though, haven't tried, but maybe the same logic would work
Thank you, I will check on that
i tried this logic but the first email send by filament always the default one but if we click the send email again button it will send the customized template
any hints of how to fix it ?
But i can confirm that the custom reset password email message works perfectly
Oooh nevermind guys i got it :
1. Povilas tutorial is correct it works perfectly
2. To implement custom email message on registration you should also Extend the registration page in filament vendor
3. Create custom message for the first email when user register
4. Also create custom page for email verification prompt with custom email message so the user
Here is some code snippet
panel provider
Custom register page