Commit 3416a313 authored by Richard Mansfield's avatar Richard Mansfield
Browse files

Add failed mail error message

parent 9ff5b0b9
......@@ -107,7 +107,7 @@ function contactus_submit($values) {
email_user($to,$from,$values['subject'],$values['message']);
}
catch (Exception $e) {
json_reply('local', get_string('emailnotsent'));
json_reply('local', get_string('emailnotsent', 'mahara', $e->getMessage()));
}
json_reply(false, get_string('contactinformationsent'));
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment