I am attempting to send and email via my feedback form and nothing seems to go thru. I have tried sending to a yahoo account and a gmail account. I have changed a few things in my script several times and did receive a couple emails about 1 day later that just went into bulk. As of now I receive nothing. Can someone please take a look at my script and tell me what I am doing wrong. Also how do I prevent mails from going to bulk/spam? Could this be an issue with my web hosting company ?
Form.php
[php]
<form method="post" action="sendfeedback.php">
<div align="center">
<p align="center"><font face='Verdana' >Contact Us</font> </p>
<p>Feedback<br>
<textarea name="message" rows="5" cols="50"></textarea></p>
<p>Your Email:
<input name="email" type="text" /></p>
<p><input type="submit" value="Send Feedback" /></p>
</div>
</form>
SendFeedback.php
<?php
//get the senders email
$from = $_REQUEST['email'] ;
//define the receiver of the email
$to = 'support@mysite.com';
// subject of the email
$subject = 'Feedback Form Results';
//define the message to be sent.
$message = $_REQUEST['message'] ;
//define the headers
$headers = "From: '$from'\r\nReply-To: '$from' ";
//send the email
$mail_sent = @mail( $to, $subject, $message, $headers );
echo $mail_sent ? "<br><font face='Verdana' size='3' color='green'>Mail sent, Thank You for your Feedback</font>" : "<br><font face='Verdana' size='3' color='green'>Mail failed</font>";
?>[/php]