Hallo, heeft er iemand een idee hoe het komt dat deze mail niets verstuurt en ook geen antwoordje geeft als er gepost is?

De code in mijn index.php:)

case "mailformulier": $page="mailformulier.php";break;


De code van het mailformulier:)

<?
// =========================== //
// -- //
// Geplaatst op: 10.01.2003 23:52 //
// Download URL:
// http://www.phphulp.nl/php/scripts/?cat=2&id=12 //
// -- //
// =========================== //

// ----------------
// Toelichting
// ----------------

/*
Contact formulier met verplichte velden. Geheel dynamisch. Je hoeft alleen je e-mail adres op te geven en hij wordt verstuurd.
*/

// ----------------
// Code:
// ----------------
?>

<?
// geef e-mail adres op van ontvanger
$mail_ontv = "[email protected]";

// als er niet op submit is gedrukt, of als er wel op is gedrukt maar niet alles ingevoerd is
if (!$submit || $submit && (!$naam || !$mail || !$msggs || !$onderwerp))
{
if ($submit && (!$naam || !$mail || !$msggs || !$onderwerp))
{
echo "<p>Je bent je <b>naam</b>, <b>e-mail</b>, <b>onderwerp</b> of <b>bericht</b> vergeten!</p>";
}

// form + tabel
echo "<TABLE BORDER=0 CELLSPACING=0 CELLPADDING=0>";
echo "<FORM METHOD=POST ACTION=$PHP_SELF>";

// naam
echo "<TR><TD>Naam:</TD></TR>";
echo "<TR><TD><INPUT TYPE=text NAME=naam VALUE=\"$naam\"></TD></TR>";

// space
echo "<TR><TD>&nbsp;</TD></TR>";

// mail
echo "<TR><TD>E-mail adres:</TD></TR>";
echo "<TR><TD><INPUT TYPE=text NAME=mail VALUE=\"$mail\"></TD></TR>";

// space
echo "<TR><TD>&nbsp;</TD></TR>";

// mail
echo "<TR><TD>Onderwerp:</TD></TR>";
echo "<TR><TD><INPUT TYPE=text NAME=onderwerp VALUE=\"$onderwerp\"></TD></TR>";

// space
echo "<TR><TD>&nbsp;</TD></TR>";

// mail
echo "<TR><TD>Bericht:</TD></TR>";
echo "<TR><TD><TEXTAREA NAME=msggs ROWS=6 COLS=100>$msggs</TEXTAREA></TD></TR>";

// space
echo "<TR><TD>&nbsp;</TD></TR>";

// button
echo "<TR><TD>&nbsp;</TD></TR>";
echo "<TR><TD><INPUT TYPE=submit NAME=submit VALUE=\"Versturen\"></TD></TR>";

// sluit form + tabel
echo "</FORM>";
echo "</TABLE>";
}
// versturen naar
else
{
// set datum
$datum = date("d.m.Y H:i");

// set ip
$ip = $REMOTE_ADDR;

$inhoud_mail = "===================================================\n";
$inhoud_mail .= "INGEVULD CONTACT FORMULIER\n";
$inhoud_mail .= "===================================================\n\n";

$inhoud_mail .= "Naam: $naam\n";
$inhoud_mail .= "E-mail adres: $mail\n";
$inhoud_mail .= "Bericht:\n";
$inhoud_mail .= "$msggs\n\n";

$inhoud_mail .= "Verstuurd op $datum via het ip $ip\n\n";

$inhoud_mail .= "===================================================\n\n";

mail($mail_ontv, $onderwerp, $inhoud_mail, "From: $naam <$mail>");

echo "E-mail is verstuurd.";
}
?>

Reageren