Browse code

Created repository.

DoubleBastionAdmin authored on 01/03/2022 23:31:10
Showing 1 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,19 @@
1
+<?php
2
+
3
+require_once('phaxio_config.php');
4
+require_once('autoload.php');
5
+
6
+$params = array(
7
+    'to' => $toNumber,
8
+    'file' => array(
9
+        # Use open file handles to upload files
10
+        fopen('files/coverPage.html', 'r'),
11
+        fopen('files/content.pdf', 'r')
12
+    )
13
+);
14
+
15
+$phaxio = new Phaxio($apiKeys[$apiMode], $apiSecrets[$apiMode], $apiHost);
16
+
17
+$result = $phaxio->sendFax($params);
18
+var_dump($result);
19
+