sankar62 0 Newbie Poster

<?php
$to="someone@gmail.com";
$subject="php mail";
$body="mail sending using php script";
$header="From:someone@gmail.com";
if(mail($to,$subject,$body,$header))
{
echo "mail was sent to $to with subject $subject";
}
else
{
echo " error occur check the code";
}
?>.....................................................
this is my code for sending mail using php..
i got error like the below one::


Warning: mail() [function.mail]: SMTP server response: 553 We do not relay non-local mail, sorry. in C:\xampp\htdocs\test\mail.php on line 6
.....................................................................................................................
what should i do for remove error???
please HELP me............
....................................................................