php email script sends to 1 kind of emails but not to other
Posted: Sun Aug 12, 2012 2:28 am
hello all
I have a little php script on my server for sending mail:
when I pass this kind of email - myEmail@gmail.com all is fine but when I pass this kind of mail - mail@myWebSite.com the mail won't send. any ideas why?
also, i am not sure my server has mail turned on - does that matter?
thanx in advance
I have a little php script on my server for sending mail:
Code: Select all
<?
$to=$_POST["to"];
$subject=$_POST["subject"];
$body=$_POST["body"];
mail($to,$subject,$body);
?>also, i am not sure my server has mail turned on - does that matter?
thanx in advance