试图找出为什么忘记密码在升级到5.3后不会发送电子邮件。我已经通过PasswordBroker,用户,CanResetPassword,并最终通过RoutesNotifications :: notify将其追踪到服务容器中,并且显然在第21行app(Dispatcher::class)->send([$this], $instance);
上发送电子邮件实例,但没有发送电子邮件......任何想法?Laravel 5.3升级忘记密码电子邮件从未发送过
我正在使用MailGun驱动程序,并使用旧的邮件API所有移植的代码仍在工作,只是使用新的通知重置密码API不是。
我ResetPassword::toMail
卡存根,但它永远不会调用此方法:
public function toMail()
{
Log::info('toMail');
return (new MailMessage)
->line('You are receiving this email because we received a password reset request for your account.')
->action('Reset Password', url('password/reset', $this->token))
->line('If you did not request a password reset, no further action is required.');
}
这是一个很好的发现。感谢分享 - 拯救了我! – mcnamee
我有类似的问题,这个问题和答案不一定能解决它,但它指出我最终的方向。谢谢。 –