added debug to the emails
This commit is contained in:
parent
3a5ac9c130
commit
d51688aa2b
|
|
@ -87,6 +87,10 @@ new class extends Component {
|
||||||
Mail::to(Auth::user())->send(new TestEmail($locale));
|
Mail::to(Auth::user())->send(new TestEmail($locale));
|
||||||
Session::flash('test-email-sent', true);
|
Session::flash('test-email-sent', true);
|
||||||
} catch (\Exception $e) {
|
} catch (\Exception $e) {
|
||||||
|
\Log::error('Test email failed: ' . $e->getMessage(), [
|
||||||
|
'exception' => get_class($e),
|
||||||
|
'trace' => $e->getTraceAsString(),
|
||||||
|
]);
|
||||||
Session::flash('test-email-failed', true);
|
Session::flash('test-email-failed', true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue