visualbuilder / email-templates

Email Template Editor for Filament
GNU General Public License v3.0
74 stars 19 forks source link

Can't Override The Laravel Reset Password #19

Open rzkyyds opened 2 months ago

rzkyyds commented 2 months ago

Hi,

I have followed your instructions in the Readme but when I try to reset the password it sends the basic laravel email template.

User model: `class User extends Authenticatable { use HasFactory, Notifiable, HasRoles;

/**
 * @param $token
 *
 * @return void
 */
public function sendPasswordResetNotification($token)
{
    $url = \Illuminate\Support\Facades\URL::secure(route('password.reset', ['token' => $token, 'email' =>$this->email]));

    $this->notify(new UserResetPasswordRequestNotification($url));
}`

Then why is it that when I save the template, the preview does not come from the email content that I have created? but rather like the template provided by the plugin.

Thank you

cannycookie commented 1 month ago

What does toMail look like in your UserResetPasswordRequestNotification ?