Merge pull request #314 from Scriptkiddi/master
Add config no reply mail
This commit is contained in:
commit
7bbfe69583
|
@ -8,6 +8,7 @@ $faq_url = "https://events.ccc.de/congress/2013/wiki/Static:Volunteers";
|
||||||
|
|
||||||
// contact email address, linked on every page
|
// contact email address, linked on every page
|
||||||
$contact_email = "mailto:ticket@c3heaven.de";
|
$contact_email = "mailto:ticket@c3heaven.de";
|
||||||
|
$no_reply_email = "noreply@engelsystem.de";
|
||||||
|
|
||||||
// Default-Theme auf der Startseite, 1=style1.css usw.
|
// Default-Theme auf der Startseite, 1=style1.css usw.
|
||||||
$default_theme = 1;
|
$default_theme = 1;
|
||||||
|
|
|
@ -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.');
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue