"; $headers = "From: $sender\r\n"; $headers .= "Bcc: $bcc\r\n"; $headers .= "Reply-To: Wettmeister-Webmaster <$Webmaster>\r\n"; $headers .= "Content-Type: text/plain; charset=utf-8\r\n"; $headers .= "Content-Transfer-Encoding: 8bit\r\n"; $headers .= "X-Mailer: Wettmeister/" . Version; echo "
To: " . htmlescape($sender) . "\r\n";
echo "Subject: " . htmlescape($subject) . "\r\n";
echo htmlescape($headers) . "\r\n\r\n" . htmlescape($body) . "
"; if (!mail($sender, $subject, $body, $headers)) { echo "Error: mail() failed\n"; die; } ob_flush(); redirect('adm.php'); ?>