Because I couldn't get the mail function to work with qmail (see the message I posted a minute ago), I tried to invoke the qmail-inject binary using the exec-function.
I used this line of code:
exec("echo to:hagar | /var/qmail/bin/qmail-inject");
It didn't work. However, when I enter the command in a shell, the mail message is delivered.
Any ideas why this doesn't work?
- Maybe I can't use those pipes?
- Maybe it's the qmail-inject binary?
- Maybe .. ?
Thanks,
Patrick