"Frank D. Cringle" wrote:
>
> Let's assume that $sendmailpath is a pipe ("|/usr/lib/sendmail ...")
I should have said that... it's set to '|/usr/sbin/sendmail -t '
> > It tells me the mail has been sent okay (even when the failiure tests
> > were in place) but nothing.
>
> The essential failure-test is missing. Only during close() do you find
> out if there was a problem writing to the pipe when the last (possibly
> only) bufferful of data gets flushed to it.
Ah! that's interesting, I was under the impression that the failiure would
happen on an open, not a close. I'll check that one over...
> > I tested this code as a vanilla cgi script, and it worked fine. I have
> > *no* idea why it won't work under mod_perl.
>
> There shouldn't be much difference. Maybe some obscure environment
> variable, or your cgi is suexec'ed to a different user?
The whole shebang runs as nobody:nobody, so there's no difference there.
mod_perl doesn't run as a crazy user of it's own choosing, as far as I can
tell - but then, I can't tell much. :)
The thing was, I started the Smart Way, and used everyone elses' code first:
Net::SMTP, then MIME::Lite (which I've used before from CGI on the same box
flawlessly). You know, your forehead hurts and the wall is getting bloody, so
you ditch all the stuff that *should* work and try to go it alone. :)
I assumed that it was a mod_perl issue because it works under everything
else. :)
>
>
> --
> Frank Cringle, [EMAIL PROTECTED]
> voice: (+49 2304) 467101; fax: 943357
Dave
(busy putting warn()s around his closes...)