Hi all,
Because of a chroot jail a web site that I'm working on is in (I don't
know much about the jail stuff), I can't use sendmail to send email
through a PHP script. The sys admin said he's put a copy of the basic
unix mail into the jail that I can use.
Now I assume I can use this by just doing a shell_exec, but for some
reason, I get no result out of it. If I run mail at command line
(without the variable names), it works great.
Can anyone suggest how I can approach this situation? Thanks!!
$output = shell_exec("echo $body | mail -s \"$subject\" $to");
print ("$output");