HI I used this script on my site... this is the script i am using <?php $from = "info@XXXXX.com"; $from_name = "Website Visitor"; $subject = "Contact Form"; $to = "shail@iiml.ac.in"$_POST['email']; // collect data $body = ""; foreach($_POST as $key => $val) { if($key != 'captcha') $body .= ucfirst($key).": ".$val."\r\n"; } // construct MIME PLAIN Email headers $header = "MIME-Version: 1.0\n"; $header .= "Content-type: text/plain; charset=utf-8\n"; $header .= "From: $from_name <$from>\r\nReply-To: $from_name <$from>\r\nReturn-Path: <$from>\r\n"; // send email $mail_sent = mail($to, $subject, $body, $header); ?> Code (markup):
Did you got or not.. the $to should be $to = "shail@iiml.ac.in"; PHP: or you can use $to = $_POST['email']; PHP: use either one....!