0

This is driving me crazy...

$sendit = (`ls`);
echo $sendit;

The above chunk of code returns a directory listing on my php page just fine. However...

$sendit = (`sendmail`);
echo $sendit;

This seems to do nothing. I am looking for a time stamped sendmail entry in /var/log/mail.log but see NOTHING! When I 'sendmail' (no arguments) from the command line I at least get an entry in /var/log/mail.log reflecting the time I ran the command. Why would php not at least send the command and create the entry?

I have also tried system(), exec(), etc.

1
Contributor
1
Reply
2
Views
9 Years
Discussion Span
Last Post by pandoola
0

I figured this out...not supplying the full path to sendmail was my downfall.

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.