Hi all...
I am running a php test server; however, I am learning about php on the fly.
I am having a problem with my users trying to send emails with php.
I can run the following script successfully as root, but not as a normal user:
<?php
//first_mail.php
$mail_to ="an_addr@xyz.com";
$mail_subject = "An email subject";
$mail_body = "This message was generated with a php script\n";
if(mail($mail_to, $mail_subject, $mail_body))
echo "Successfully sent the e-mail \"$mail_subject\" to $mail_to.";
else echo "Failed to send the e-mail \"$mail_subject\"."
?>
I don't understand what to do in response to the following error that I get on an unsuccessful attempt:
Can't create transcript file ./xff2T3KMx03834: Permission denied
X-Powered-By: PHP/4.0.4pl1
Content-type: text/html
Failed to send the e-mail.
What's a guy to do?
Any advice would be greatly appreciated.
RNV