.Net Fax - Send multiple documents as a fax

This is a more advanced .Net code sample to show how to send a fax with multiple documents. This code sample is based on the .Net library for InterFAX available on Github.

This sample demonstrates how to send a fax through InterFAX to a single recipient and provide multiple documents (of different types) in the fax - all you need to do in order to change it is to provide a different fax number and a different path to the files that you would like to send

  
     // create the various documents
var file1 = interfax.Documents.BuildFaxDocument(
  @".\path\to\fax.pdf"
);
var file2 = interfax.Documents.BuildFaxDocument(
  @".\path\to\fax.html"
);
var uri1 = interfax.Documents.BuildFaxDocument(
  new Uri("http://example.com/path/to/fax.html")
);

// combine the documents to a list
var documents = new List {
  file1, file2, uri1
};

// fax the list
await interfax.Outbound.SendFax(
  documents,
  new SendOptions {
    FaxNumber = "+11111111112"
  }
);

  

You can check on the status of this fax by following this sample code.

Contact us today

Talk to a member of our team about the benefits InterFAX can bring to your organization's communications processes.

Contact us today