Custom fax solution
The custom fax solution interface consists of these functions:
- init.fax
-
Syntax: function extern long init.fax( ref string o.error.message) Description: Use this function to initialize the fax message. Arguments: o.error.message: output argument which contains the error message, or an empty string Return value: 0 if processing without errors, otherwise the error code
- add.fax.attachment
-
Syntax: function extern long add.fax.attachment( const string i.filename, const string i.displayname, ref string o.error.message) Description: Use this function to add an attachment to the fax message. Arguments: i.filename: input argument which contains the name of the file. i.displayname: input argument which contains the name to be displayed in the message o.error.message: output argument which contains the error message, or an empty string Return value: 0 if processing without errors, otherwise the error code
- set.fax.number
-
Syntax: function extern long set.fax.number ( const string i.fax.number, ref string o.error.message) Description: Use this function to set the fax number. Arguments: i.fax.number: The faxnumber to which the fax must be sent. o.error.message: output argument which contains the error message, or an empty string Return value: 0 if processing without errors, otherwise the error code
- send.fax
-
Syntax: function extern long send.fax( ref string o.error.message) Description: Use this function to send the fax. Arguments: o.error.message: output argument which contains the error message, or an empty string Return value: 0 if processing without errors, otherwise the error code
- cancel.fax
-
Syntax: function extern long cancel.fax( ref string o.error.message) Description: Use this function to cancel the fax. Arguments: o.error.message: output argument which contains the error message, or an empty string Return value: 0 if processing without errors, otherwise the error code