From 2fec35cf708112b9727d6da15899d2acd9880b53 Mon Sep 17 00:00:00 2001 From: mecab Date: Wed, 31 Jan 2018 11:18:55 -0600 Subject: [PATCH] Fix errors while sending mail is not displayed in contact form. --- include/pages/contactform/contactform.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/pages/contactform/contactform.inc.php b/include/pages/contactform/contactform.inc.php index 0f352c7b..5e2f4a71 100644 --- a/include/pages/contactform/contactform.inc.php +++ b/include/pages/contactform/contactform.inc.php @@ -25,7 +25,7 @@ if ($setting->getValue('acl_contactform') == 2) { if ($mail->contactform($_POST['senderName'], $_POST['senderEmail'], $_POST['senderSubject'], $_POST['senderMessage'])) { $_SESSION['POPUP'][] = array('CONTENT' => 'Thanks for sending your message! We will get back to you shortly'); } else { - $_SESSION['POPUP'][] = array('CONTENT' => 'There was a problem sending your message. Please try again. ' . $user->getError(), 'TYPE' => 'alert alert-danger'); + $_SESSION['POPUP'][] = array('CONTENT' => 'There was a problem sending your message. Check following error and please try again: ' . $mail->getError(), 'TYPE' => 'alert alert-danger'); } } }