I have been having problems with a PHP mail() script so I emailed my host. This is their reply:
I found out that on your server we have php compiled without suExec. Our admin recommends that you find a script that is configured to send mail out via an email account that is not the user nobody.
I am specifying the following arguments in my mail script:
<?php
$mail = mail($to, $subject, $message, 'From: webmaster@mydomain.com' . "\r\n");
if($mail === true)
{
echo 'mail sent';
}
else
{
echo 'no way, no how!';
}
?>
Can someone explain to me what I am doing wrong, or how to modify this script to work if suExec is not compiled?? I am very confused about this. All that I came up with is that suExec is an Apache configuration. The funny/strange part is that the scripts used to work. Now they don't...
Thanks for your help!
-RH