diff --git a/app/Http/Controllers/Admin/Settings/MailController.php b/app/Http/Controllers/Admin/Settings/MailController.php index df4b17778..b84523142 100644 --- a/app/Http/Controllers/Admin/Settings/MailController.php +++ b/app/Http/Controllers/Admin/Settings/MailController.php @@ -128,7 +128,7 @@ class MailController extends Controller Notification::route('mail', $request->user()->email) ->notify(new MailTested($request->user())); } catch (Exception $exception) { - $this->alert->danger(trans('base.mail.test_failed'))->flash(); + $this->alert->danger(trans('base.mail.test_failed') . ' ' . $exception->getMessage())->flash(); return redirect()->route('admin.settings.mail'); } diff --git a/resources/lang/en/base.php b/resources/lang/en/base.php index 588d2fbe2..d57f1090b 100644 --- a/resources/lang/en/base.php +++ b/resources/lang/en/base.php @@ -88,6 +88,6 @@ return [ ], 'mail' => [ 'test_succeeded' => 'The test message was sent successfully!', - 'test_failed' => 'Failed to send test message! Check your configuration and try again.', + 'test_failed' => 'Failed to send test message! Error message:', ], ];