This Java fax API snippet reads a number of files, joins them into one string, and submits the fax with multiple attachments to the InterFAX Web service. Finally, an indication is received, by which you can see whether the submission succeeded or failed: If you get the transaction ID (positive number) of the fax in the system, this means the transaction was successful. Otherwise, you will receive any other return value, indicating a failure (for more details, see Web Service Return Codes).

Find the Java fax code sample in this section as part of the ZIP file above (see the green 'Download' box), under the path interfaxJavaSamples > src > SendMultipleFilesToMultipleRecipients, or see below: