If you are using a job then you need to start your queue to send it,
reset password not sending email
i have followed official document for password reset
https://laravel.com/docs/9.x/passwords
i've created a controller with 2 methods like document says
everything seem to work , i see new password reset stored in database but i'm not receiving any email containing reset link
i've manually dispatched an email job on the forgot method of my controller to see if my email credentials are ok and i did receive the email so they are correct
this part of documentation is vague , there is no mention how email will be sent ... i assume it will send the email automatically washout any need to create and email/notification/job ... by me ? am i missing anything here ?
here is my code
function forgot(Request $request){
$request->validate(['email' => 'required|email']);
$status = Password::sendResetLink(
$request->only('email')
);
SendEmailJob::dispatch('my name', '[email protected]', 'dummyToken');
return $status === Password::RESET_LINK_SENT
? response(['message' => __('messages.EmailSent')])
: response(['message' => __($status)], 400);
}
i've added
SendEmailJob::dispatch('my name', '[email protected]', 'dummyToken');
to see if my mail works ... i assume i dont need to send an email and i should receive the email without this
Please or to participate in this conversation.