use config for using static references to my installation

This commit is contained in:
2018-03-15 16:26:59 +01:00
parent 043e10596a
commit eb414e67df
2 changed files with 4 additions and 3 deletions

View File

@@ -1,7 +1,8 @@
<?php
function send_mail($receiver, $subject, $body) {
$headers = "From: registration@cg-s.tk\r\n"
include("config.php");
$headers = "From: " . $config["register_email"] . "\r\n"
. "Content-Type: text/plain;charset=utf-8";
return mail($receiver, $subject, $body, $headers);
}