Hey guys im hoping someone can please help me. I'm trying to get my website to have a simple feed back from and it just won't work for me. This is the script i'm using
<?php
if (isset($_REQUEST['email']))
{
$email = $_POST['email'] ;
$subject = $_POST['subject'] ;
$message = $_POST['comment'] ;
mail( "name@site.ie", "Subject: $subject",
$message, "From: $email" );
echo "Thank you for using our mail form";
}
else
{
echo "<div class='container_for'>
<form method='post' action='contact.php'>
<div class='form_title'>Contact Form</div>
<div class='form_subject'>Subject : <input name='subject' type='text' id='subject' size='50'></div>
<div class='form_comment'>Comment : </div><div class='form_comment_box'><textarea name='comment' cols='50' rows='4' id='comment'></textarea></div>
<div class='form_name'>Name : <input name='name' type='text' id='name' size='50'></div>
<div class='form_name'>E-Mail : <input name='email' type='text' id='email' size='50'></div>
<input type='submit' name='Submit' value='Submit'> <input type='reset' name='Submit2' value='Reset'>
</form>
</div>";
}
?>
I can get it to display that i have sent the message but I'm not able to recieve the emails at my sites email or my gmail.
Am I supposed to have settings done anywhere else such as smtp settings or anything?
Any help would be great thanks!