diff --git a/game/scripts/game/main/library/sendMail.inc b/game/scripts/game/main/library/sendMail.inc index e69fd02..94bd931 100644 --- a/game/scripts/game/main/library/sendMail.inc +++ b/game/scripts/game/main/library/sendMail.inc @@ -29,10 +29,11 @@ class main_sendMail { $mail = preg_replace($subst, $vals, $mail); $tmp = explode("\n", $mail); $subject = array_shift($tmp); + $from = config::getParam('mailfrom'); $mail = join("\n", $tmp); - $header = "From: webmaster@legacyworlds.com\r\n" - . "Reply-To: webmaster@legacyworlds.com\r\n" + $header = "From: $from\r\n" + . "Reply-To: $from\r\n" . "X-Mailer: LegacyWorlds\r\n" . "Mime-Version: 1.0\r\n" . "Content-Type: text/plain; charset=iso-8859-1"; diff --git a/game/scripts/legacyworlds.xml b/game/scripts/legacyworlds.xml index f0bb483..0e680bf 100644 --- a/game/scripts/legacyworlds.xml +++ b/game/scripts/legacyworlds.xml @@ -9,6 +9,9 @@ + + +