Hi all I had create a simple form to send to my email but after complete the form and click on submit I cant receivce it in my mail box. please help!!!
<FORM action=/mailer.php method=post
encType=multipart/form-data>
<LABEL>Name:</LABEL> (required) <BR><INPUT
class=form-input-field size=40 name=form_element0> <BR><BR><LABEL>Email:</LABEL>
(required) <BR><INPUT class=form-input-field size=40 name=form_element1>
<BR><BR><LABEL>Your contact number:</LABEL> <BR><INPUT class=form-input-field
size=40 name=form_element2> <BR><BR><LABEL>Subject:</LABEL> (required)
<BR><INPUT class=form-input-field size=40 name=form_element3>
<BR><BR><LABEL>Message:</LABEL> (required) <BR><TEXTAREA class=form-input-field name=form_element4 rows=8 cols=38></TEXTAREA>
<BR><BR><INPUT class=form-input-button type=reset value=Reset name=resetButton> <INPUT class=form-input-button type=submit value=Submit name=submitButton>
</FORM></P>
And this is my mailer
<?php
$ip = $_POST[‘ip’];
$httpref = $_POST[‘httpref’];
$httpagent = $_POST[‘httpagent’];
$visitor = $_POST[‘visitor’];
$visitormail = $_POST[‘visitormail’];
$notes = $_POST[‘notes’];
$attn = $_POST[‘attn’];
if (eregi(‘http:’, $notes)) {
die (“Do NOT try that! ! “);
}
if(!$visitormail == “” && (!strstr($visitormail,”@”) || !strstr($visitormail,".")))
{
echo "<h2>Use Back - Enter valid e-mail</h2>
";
$badinput = "<h2>Feedback was NOT submitted</h2>
";
echo $badinput;
die ("Go back! ! ");
}
if(empty($visitor) || empty($visitormail) || empty($notes )) {
echo "<h2>Use Back - fill in all fields</h2>
";
die ("Use back! ! ");
}
$todayis = date(“l, F j, Y, g:i a”) ;
$attn = $attn ;
$subject = $attn;
$notes = stripcslashes($notes);
$message = " $todayis [EST]
Attention: $attn
Message: $notes
From: $visitor ($visitormail)
Additional Info : IP = $ip
Browser Info: $httpagent
Referral : $httpref
";
$from = "From: $visitormail
";
mail(" ricky281@gmail.com " , $subject, $message, $from);
?>
<p align=“center”>
Date: <?php echo $todayis ?>
<br />
Thank You : <?php echo $visitor ?> ( <?php echo $visitormail ?> )
<br />
<br />
Message:<br />
<?php $notesout = str_replace("\r", “<br/>”, $notes);
echo $notesout; ?>
<br />
<?php echo $ip ?>
<br /><br />
<a href="/index.html"> Next Page </a></p>
</body>
</html>