problem with php mail() function

Hello everyone,
I have one problem,
i am using this php script:

<?php
$header = 'From: wapadds@wapadds.com' . "rn" .
'Reply-To: wapadds@wapadds.com' . "rn" .
'X-Mailer: PHP/' . phpversion();
mail("ivs@gsmdigitel.com" , "something", "please work", $header);
echo "like ok";
?>

the problem is that script works when i put any local e-mail (e-mail which is on the same server as script), but when i put a remote e-mail address it does not work, i have no idea what can cause this problem.

I have:
os: CentOS 4.1 i686
cp: WHM 10.6.0 cPanel 10.8.0-R8

Thanks

 

 

 

 

Top