Thanks for the help in this... greatly appreciate it...
> The sendmail wrapper emulates sendmail. As a result, testing it as
> you would qmail-inject is not useful.
>
> You don't seem to know how to use sendmail. This makes testing it
> harder.
>
I admit to not being familiar with sendmail in the least. If I do appear
obstinate in just finding out how to do it without actually taking time to
really get into the depth of things, I do apologize, but this is part of
something that was given to me with a tight deadline and instructions not to
ask back how to do it. So I am rather feeling like my back is to the wall on
this one :)
I was under the impression that being an emulator for sendmail, it would
take in input as we would give to sendmail and convert it to qmail input and
pass to qmail-inject (in this case). And my problem with the wrapper right
now is that when I call the mail() function in php (which calls sendmail) it
just doesn't seem to deliver the goods. I would like to find out what the
problems may be based on the symptoms that I can find so far...
> You have two options: either learn sendmail, or use a program which
> calls sendmail like /bin/mail or pine. If you can send from either of
those
> MUAs (assuming Pine isn't configured to send via SMTP), then the sendmail
> wrapper works.
>
> But, since you seem pretty bent on this, you can try this syntax:
>
> % /usr/lib/sendmail [EMAIL PROTECTED] [EMAIL PROTECTED] <hit enter>
> Subject: Test
> From: [EMAIL PROTECTED]
> To: [EMAIL PROTECTED]
>
This works, both on my test machine running qmail and a machines running
sendmail. Previously I didn't know how to end the message with Ctrl-D, hence
I could not properly send the message :) Now we've established that sendmail
does work, but php's mail() function can't seem to call it properly. Does
anybody have any idea if there's any changes I need to make to get the
function to work with qmail? or at least how I can troubleshoot this...
Thanks Greg, at least I'm moving somewhere with this :)
Wong