diff options
author | msquare <msquare@notrademark.de> | 2016-11-15 22:08:41 +0100 |
---|---|---|
committer | msquare <msquare@notrademark.de> | 2016-11-15 22:08:41 +0100 |
commit | f2630162e9e2cc1f71b8a7ebac8cd76b7b22d7ad (patch) | |
tree | 0149291f08e5289bf7598338d21ca560b9f29d80 /includes/helper/email_helper.php | |
parent | ac53559feac4948fc082b5384d3c0ca897f18cd0 (diff) |
reduce complexity of password recovery controller
Diffstat (limited to 'includes/helper/email_helper.php')
-rw-r--r-- | includes/helper/email_helper.php | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/includes/helper/email_helper.php b/includes/helper/email_helper.php index 24c32be8..0ef4326a 100644 --- a/includes/helper/email_helper.php +++ b/includes/helper/email_helper.php @@ -16,7 +16,10 @@ function engelsystem_email_to_user($recipient_user, $title, $message, $not_if_it } function engelsystem_email($address, $title, $message) { - return mail($address, $title, $message, "Content-Type: text/plain; charset=UTF-8\r\nFrom: Engelsystem <noreply@engelsystem.de>"); + $result = mail($address, $title, $message, "Content-Type: text/plain; charset=UTF-8\r\nFrom: Engelsystem <noreply@engelsystem.de>"); + if ($result === false) { + engelsystem_error('Unable to send email.'); + } } ?> |