diff --git a/resources/views/settings/general.blade.php b/resources/views/settings/general.blade.php index 63cd6676ed..cd63276d37 100644 --- a/resources/views/settings/general.blade.php +++ b/resources/views/settings/general.blade.php @@ -401,7 +401,11 @@ $("#mailtesticon").html(''); $('#mailteststatus').html('Mail could not be sent.'); if (data.responseJSON) { - $('#mailteststatus-error').html('Error: ' + data.responseJSON.messages); + if (data.responseJSON.messages) { + $('#mailteststatus-error').html('Error: ' + data.responseJSON.messages); + } else { + $('#mailteststatus-error').html('No additional error message provided. Check your mail settings and your app log.'); + } } else { console.dir(data); }