/ Published in: PHP
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
function sendFax($documentPath, $faxNumbersArray) { $from = sessionManager::curentUser('names'); $msg.= count( $faxNumbersArray )." fax request sent by " . sessionManager::curentUser('names') ." :\nDocument URL : $documentPath\n\n"; foreach ($faxNumbersArray as $faxNumber) { $command = 'sendfax -f "'.sessionManager::curentUser('email').'" -R -r "'.$from.'" -c "Document" -x "To Company" -d "Recipient@'.$faxNumber.'" '.$documentPath; $msg .= "Fax number: $faxNumber\n"; $msg .= "Command: $command\n"; $msg .= "Server response: $retval\n\n"; } $msg .= "=======================================================================\n\n"; }