added debug to the emails
This commit is contained in:
@@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user