Wo liegt denn hier der Fehler!?
Irgendwie kommt die Mail übers Formular nicht an
<?
$i=0;
if ( !is_array($HTTP_POST_VARS) ) {
return;
}
reset($HTTP_POST_VARS);
while(list($key, $val) = each($HTTP_POST_VARS)) {
$GLOBALS[$key] = $val;
$val = stripslashes($val);
if ( $key == "leerzeile" ) {
$message = $message . "\n";
}
else {
$message = $message . "$key: $val\n";
#print "<b>$key</b> = $val<br>";
}
}
#(recipient) ################
$mailto = "info@testdomain";
$cc = "";
$bcc = "";
##################################################
$subject = "Anfrage";
$from = $eMail;
# $footer = "\n\nProbleme?\nE-mail: [email protected]";
$message = "$message$footer";
mail( "$mailto", "$subject", "$message", "From:$from\nCC:$cc\nBCC:$bcc" );
?>
Irgendwie kommt die Mail übers Formular nicht an
<?
$i=0;
if ( !is_array($HTTP_POST_VARS) ) {
return;
}
reset($HTTP_POST_VARS);
while(list($key, $val) = each($HTTP_POST_VARS)) {
$GLOBALS[$key] = $val;
$val = stripslashes($val);
if ( $key == "leerzeile" ) {
$message = $message . "\n";
}
else {
$message = $message . "$key: $val\n";
#print "<b>$key</b> = $val<br>";
}
}
#(recipient) ################
$mailto = "info@testdomain";
$cc = "";
$bcc = "";
##################################################
$subject = "Anfrage";
$from = $eMail;
# $footer = "\n\nProbleme?\nE-mail: [email protected]";
$message = "$message$footer";
mail( "$mailto", "$subject", "$message", "From:$from\nCC:$cc\nBCC:$bcc" );
?>