diff options
author | Fritz Otlinghaus <scriptkiddi@fap-studios.de> | 2017-02-03 17:14:46 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-02-03 17:14:46 +0100 |
commit | 6f367eefe06c4ec016207a152c2f31e4a15ec805 (patch) | |
tree | c863bb4e68794a9b8ef2af8a6f7935413fc68a5b /includes | |
parent | 3502eba04832425b3d20b401844e550e0a317080 (diff) |
Update email_helper.php
Diffstat (limited to 'includes')
-rw-r--r-- | includes/helper/email_helper.php | 3 |
1 files changed, 2 insertions, 1 deletions
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 <noreply@engelsystem.de>"); + 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.'); } |