diff options
author | msquare <msquare@notrademark.de> | 2017-03-18 15:08:44 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-03-18 15:08:44 +0100 |
commit | 7bbfe69583200e5cf2def8757a5c7995d1cc6fa2 (patch) | |
tree | fb79592a6ffa089e3b17c6cd552a875c25aa85cd /includes/helper/email_helper.php | |
parent | 4a95dfa171dfc6c0b65f36a0417f687bfd40bc97 (diff) | |
parent | 1ca6ed3dafe006035d0afc36b498a6ca42bd57df (diff) |
Merge pull request #314 from Scriptkiddi/master
Add config no reply mail
Diffstat (limited to 'includes/helper/email_helper.php')
-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..462b5641 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.'); } |