From 6f367eefe06c4ec016207a152c2f31e4a15ec805 Mon Sep 17 00:00:00 2001 From: Fritz Otlinghaus Date: Fri, 3 Feb 2017 17:14:46 +0100 Subject: Update email_helper.php --- includes/helper/email_helper.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/includes/helper/email_helper.php b/includes/helper/email_helper.php index 0ef4326a..97e85296 100644 --- a/includes/helper/email_helper.php +++ b/includes/helper/email_helper.php @@ -16,7 +16,8 @@ function engelsystem_email_to_user($recipient_user, $title, $message, $not_if_it } function engelsystem_email($address, $title, $message) { - $result = mail($address, $title, $message, "Content-Type: text/plain; charset=UTF-8\r\nFrom: Engelsystem "); + global $no_reply_email; + $result = mail($address, $title, $message, sprintf("Content-Type: text/plain; charset=UTF-8\r\nFrom: Engelsystem <%s>", $no_reply_email); if ($result === false) { engelsystem_error('Unable to send email.'); } -- cgit v1.2.3-54-g00ecf