Update email_helper.php

This commit is contained in:
Fritz Otlinghaus 2017-02-03 17:14:46 +01:00 committed by GitHub
parent 3502eba048
commit 6f367eefe0
1 changed files with 2 additions and 1 deletions

View File

@ -16,7 +16,8 @@ function engelsystem_email_to_user($recipient_user, $title, $message, $not_if_it
} }
function engelsystem_email($address, $title, $message) { 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) { if ($result === false) {
engelsystem_error('Unable to send email.'); engelsystem_error('Unable to send email.');
} }