in reply to Sendmail problems

I tried adding this just before the SENDMAIL

use Mail::Sendmail;

but got a "premature end of script headers" msg. :(

Peter

Replies are listed 'Best First'.
Re: Re: Sendmail problems
by tachyon (Chancellor) on Oct 03, 2003 at 04:07 UTC

    Mail::Sendmail is a module. You don't just use it and hope a shell call to sendmail will work. It has its own way of doing things ie an interface. You need to start looking in the error logs:

    $ tail /var/log/httpd/error_log
    $ is shell prompt, don't type it in.

    You will see an errol like Can't find Mail::Sendmail in .... along with the prem end script headers error.

    See CGI Help Guide

    cheers

    tachyon

    s&&rsenoyhcatreve&&&s&n.+t&"$'$`$\"$\&"&ee&&y&srve&&d&&print