Overview:

    *
      A very basic Php code sample that will allows to send a fax to the Multitech Fax Finder device using API interface.

Prerequisites:

    * Download and Install Php 5.2.13 Interpreter at http://php.net/downloads.php
    * Download the Php sample source code Sendfax-php.zip here

Notes: The SendFax-php.zip contained two files:

    * sendfax.php
    * schedule.xml

Modify schedule.xml:

Load the schedule.xml file into your favorite editor, find the section below, and modify the fax number to point to your recipient fax number:

<recipient>
...
<fax_number>5138</fax_number>
</recipient>

Save it.

Modify sendfax.php:

Load the sendfax.php file into your favorite editor and modify the following:

Change the path to point to your php directory

#!d:/php

Change the user name and password.

fputs($sock, "Authorization: Basic " . base64_encode("admin:admin")." \r\n");

Change the IP address to point to your Fax Finder’s IP address.

echo $resp = httpRequest("216.133.69.247","80","POST","/ffws/v1/ofax");

Save it. Go to the command prompt and cd to the folder that contained sendfax.php file and type:

php sendfax.php

Now, if you web into your FaxFinder device and go to Status & Log -> Fax Status, you should be able to see the Fax Finder is sending out a fax.