email script help
Posted: Tue Dec 02, 2008 8:55 am
for some reason this script here wont send me the mail, am i missing some piece of code
<?php
$name = $_POST['name'];
$email = $_POST['email'];
$information = $_POST['information'];
$message= "From $name using an email address of $email sent:
information: $information
";
$send=mail("email@domain.com","online inquiry",$message);
if($send){
echo ( "Thanks for making an inquiry, we'll get back to you soon!" );
}
else{
echo ( "There was an error in completing your request, please try again");
}
?>
<?php
$name = $_POST['name'];
$email = $_POST['email'];
$information = $_POST['information'];
$message= "From $name using an email address of $email sent:
information: $information
";
$send=mail("email@domain.com","online inquiry",$message);
if($send){
echo ( "Thanks for making an inquiry, we'll get back to you soon!" );
}
else{
echo ( "There was an error in completing your request, please try again");
}
?>