mail disabled in WHM
Hello WHT,I have a problem with PHP Mail . I installed a script on my server and it's working fine except php mails.
When a user enters his email to sign up and receive his validation code the validation email is not sent. It's not about the script because I installed it on another server and it worked perfect. See www.onlyprogramming.com/signup.php
This is the code that script uses for mailing
Code:
$rs0=mysql_fetch_array(mysql_query("select * from sbwmd_config")); $link= $rs0["site_addrs"] . "/signup1.php?email=" . $_REQUEST["email"] . "&rnum=" . $rnum ; $sql = "SELECT * FROM sbwmd_mails where id=6" ; $rs_query=mysql_query($sql); if ( $rs=mysql_fetch_array($rs_query) ) { $from =$rs["fromid"]; $to = $_REQUEST["email"]; $subject =$rs["subject"]; $header="From:" . $from . "\r\n" ."Reply-To:". $from ; $body=str_replace("<link>", $link,str_replace("<email>", $_REQUEST["email"],$rs["mail"]) ); mail($to,$subject,$body,$header); }
Let's get to the main subject :
I saw the "Prevent the user 'nobody' from sending out mail to remote addresses (php and cgi scripts generally run as nobody if you are not using phpsuexec and suexec respectively.)" option in WHM and turned it off so it wont prevent the user 'nobdy' and scripts to send emails.
Do you know whether there is any other option/configuration available in WHM ? Maybe it's disabling it ? Also I'm on a VPS.
I also contacted my isp however I thought there might be someone who knows why this occures and it doesn't send emails.
Any inputs would be great.
Thank you for reading.
- Umut