Voodoo Jai Posted July 31, 2008 Share Posted July 31, 2008 I have a web site that I would like to be able to send an order by fax to a third party (without web access) from my web site. What would I need to do and how do I find out more info, can this be easily intergrated into my existing web site. Thanks a lot VoodooJai Link to comment https://forums.phpfreaks.com/topic/117518-sending-a-fax-from-a-web-page/ Share on other sites More sharing options...
ronnie88 Posted July 31, 2008 Share Posted July 31, 2008 if your running php on a nix box using w/ a fax or modem u can use HylaFax http://www.hylafax.org/content/Main_Page free btw and use this script: // Create a temp file to store the message in $tmpfname = tempnam ("/tmp", "FOO"); $fp = fopen($tmpfname, "w"); fwrite($fp, $this->message); fclose($fp); // Call Sendfax: // Note the "0,," hack to get an outside line $command = "/usr/local/bin/sendfax -n -d \"0,,".$phone_number."\" -f \"From Name, Number\" $tmpfname"; exec($command); unlink($tmpfname); if you dont wanna go that way: you can use a service. such as: http://www.interfax.net/en/dev/webservice/ Link to comment https://forums.phpfreaks.com/topic/117518-sending-a-fax-from-a-web-page/#findComment-604457 Share on other sites More sharing options...
Voodoo Jai Posted July 31, 2008 Author Share Posted July 31, 2008 Would the hosting server have to have a fax modem for this to happen or is the subscribe to a service the way to go about it easier. Thanks again for all the help I have had. VoodooJai Link to comment https://forums.phpfreaks.com/topic/117518-sending-a-fax-from-a-web-page/#findComment-604461 Share on other sites More sharing options...
Voodoo Jai Posted July 31, 2008 Author Share Posted July 31, 2008 My web server hosting does not support the sending of faxes directly. So could the order be emailed to me and a fax sent from my pc through my fax machine. If so how would I take the email and fax the order to the third party. Complicated walk around. Link to comment https://forums.phpfreaks.com/topic/117518-sending-a-fax-from-a-web-page/#findComment-604479 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.