Hylafax Mailing List Archives
|
[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
Re: [hylafax-users] Can't use sendfax out of cgi-script
Juergen Hoffmann:
>sub send_fax_mail() {
> my $fax;
> foreach $fax (@fax_recipients) {
> $systemcall = "/usr/bin/sendfax -n -d0\,$fax /tmp/$destination.$date.txt";
> $debug .= `$systemcall`;
> $debug .= $systemcall.br;
> };
> close($fh);
> $debug .= h /tmp/$$.fax;
> foreach (@mail_recipients) {
> $systemcall = "cat /tmp/$destination.$date.txt | mail -s \"Ihr Internet Formular wurde mit den folgenden Daten ausgefüllt
> system($systemcall);
> $debug .= $systemcall.br;
> };
> # `rm /tmp/$destination.$date.txt`;
>}
Dunno what you're trying to tell us, but this is certainly not
syntactically correct perl. Neither it appears to be semantically
consistent: Where is $fh defined? What is the purpose of ? The "cat..."
string does not terminate?!
Probably the reason is simply that your script is wrong? Your server's
log would tell more.
Helge
____________________ HylaFAX(tm) Users Mailing List _______________________
To unsub: mail -s unsubscribe hylafax-users-request@hylafax.org < /dev/null