Fax from ColdFusion Using a Few Lines of Code
Need to fax from ColdFusion? Access the InterFAX internet fax service through the developer API and send faxes programmatically from ColdFusion with just a few lines of code and no installations. The InterFAX service accepts files in all popular document formats - including MS Word, PDF, plain text ASCII, HTML, URL, and others - and sends them to a fax number you specify.
Sign up now for our free developer program and receive immediate access to the Interfax Fax API, with full support for ColdFusion. No hardware installations, no software setup, no phone lines to order.
ColdFusion Code Samples
|ColdFusion Fax - Send a Binary File Using SendFax||
This sample demonstrates how to send a binary fax from ColdFusion using the SendFax method.
|ColdFusion Fax - Send Plain-Text Message Using SendCharFax||
The SendCharFax method allows you to send a basic, plain-text fax from ColdFusion. Text is limited to be standard ASCII (no 8-bit characters), but can include HTML markup.
|ColdFusion Fax - Send Multiple Files to Multiple Recipients with SendfaxEx_2||
This section provides a ColdFusion fax snippet, which reads a number of files, concatenates them into one string, submits the fax to the Web service (with multiple attachments), and indicates whether the submission succeeded. The return value of a successful submission is the transaction ID (positive number) of the fax in the system. Other return values indicate a failure (for more details, see Web Service Return Codes).
|ColdFusion Fax - Get Submitted Fax Information with FaxStatus||
This sample demonstrates how to retrieve information about one or more submitted faxes from ColdFusion.
|ColdFusion Fax - Get Detailed Information About Submitted Faxes||
The FaxQuery method allows you to retrieve information about one or more submitted faxes with ColdFusion. This method has more flexible querying options than FaxStatus (for more details, see Side-by-side Comparison of Web Service Methods).
|ColdFusion Fax - Query Submitted Faxes with FaxQuery2||
This sample demonstrates how to retrieve detailed information about submitted faxes from ColdFusion. This is done using the FaxQuery2 method, which has more flexible querying options than FaxQuery (for more details, see Side-by-side Comparison of Web Service Methods).
|ColdFusion Fax - Retrieve Outbound Fax Image||
The GetFaxImage method, demonstrated in the snippet below, retrieves the image of an outbound (previously-submitted) fax with ColdFusion.
|ColdFusion Fax - Cancel Pending Fax||
Cancelling a previously-submitted outbound fax with ColdFusion can be done using the CancelFax method.
|ColdFusion Fax - Get List of Inbound Faxes||
The GetList method demonstrated in this sample allows you to retrieve a list of inbound (received) faxes with ColdFusion.
|ColdFusion Fax - Retrieve Inbound Fax Image||
In this sample, the GetImageChunk method is used to retrieve an image for an inbound (received) fax with ColdFusion.