HylaFAX The world's most advanced open source fax server

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: [hylafax-users] faxrcvd script



#!/usr/bin/php -q
<?
exec("/bin/echo \"test\" | /usr/bin/mutt -a /var/spool/hylafax/" .
$argv[1] . " -s \"Fax Recevied\" em...@xxxxxxxxxx");

What if you tried something like this?


#!/usr/bin/php
<?php

$tiff_file = '/var/spool/hylafax/'.$_SERVER['argv'][1];

if (file_exists($tiff_file)) {
system("/bin/echo \"test\" | /usr/bin/mutt -a $tiff_file -s \"Fax Recevied\" email@xxxxxxxxxx");
} else {
system("/bin/echo \"No fax\" | /usr/bin/mutt -s \"No Fax Recevied\" email@xxxxxxxxxx ");
}


Dave


____________________ HylaFAX(tm) Users Mailing List _______________________ To subscribe/unsubscribe, click http://lists.hylafax.org/cgi-bin/lsg2.cgi On UNIX: mail -s unsubscribe hylafax-users-request@xxxxxxxxxxx < /dev/null *To learn about commercial HylaFAX(tm) support, mail sales@xxxxxxxxx*




Project hosted by iFAX Solutions