This function can be used to send multiple files as a fax to multiple recipients. The user can specify additional details about the recipients as well as the fax job (schedule, cover page, etc.). The out parameters contain the job IDs (one per recipient), estimated time in seconds till job starts and error information (if the job submission failed). This function requires a Fax Online or Fax Pro(100/300/1000) Account.

Syntax

C# Copy imageCopy
bool SendFaxEx(
    string UserID,
    string strPIN,
    FaxJobRecipient[] Recipients,
    FaxJobFile[] FaxJobFiles,
    FaxJob JobDetails,
    out FaxJobId[] FaxJobIds,
    out long TTFP,
    out WSError WSError
)
Visual Basic Copy imageCopy
SendFaxEx(
    ByVal UserID As String,
    ByVal strPIN As String,
    ByVal Recipients() As FaxJobRecipient,
    ByVal FaxJobFiles() As FaxJobFile,
    ByVal JobDetails As FaxJob,
    ByRef FaxJobIds() As FaxJobId,
    ByRef TTFP As Long,
    ByRef WSError As WSError
) As Boolean

Parameters

Parameter

Type

Required?

Description

Input Header

Authorization

String

Required for OAuth 2.0 authorization

A string representing the authentication of the request via an access token in the format of Authorization: Bearer {AccessToken}.

Example: Authorization: Bearer M1Q0NjJvZ7Q5OPM2NDW1ZTCjOGZmYjI4

x-ch-request-id

String

Client generated unique identifier for tracking

Content-Type

String

Indicates the expected content type of the payload. Valid options are:

  • application/soap+xml for SOAP XML.

  • application/json for JSON.

If a value is not supplied then the default of application/soap+xml is used.

Input Body

UserID

String

Required

String representing the API Service User Id. Example: mbx1234567890

strPIN

String

Required for username and password authentication

Deprecated. Use OAuth 2.0 and Authorization header for modern authentication

Recipients

FaxJobRecipient[]

Required

Array of FaxJobRecipient.

FaxJobFiles

FaxJobFile[]

Required

Array of FaxJobFile

JobDetails

FaxJob

Required

Job level information about a fax job.

Output Header

x-ch-activity-id

String

Server generated unique identifier of tracking

x-ch-execution-time

String

Server execution time in milli-seconds

Output Body

FaxJobIds

FaxJobId[]

Return array of FaxJobId.

TTFP

Long

Return estimated time in seconds before job will begin.

WSError

WSError

Return error details.

Result

return

Boolean

True/False indicating result of method call

Code Examples

Detailed code examples for SendFaxEx method

See Also