Sales
Click for numbers
Welcome User Tools Developer Tools Prices Help Sign up Login
You are here: Home > Developer Tools > Fax Web Service > Samples > ASP.NET (ASPX) - Simple fax transmission

ASP.NET (ASPX) - Simple fax transmission

This script requires a proxy object which can be downloaded here. To create a fresh proxy class, see instructions  here.

<%@ Page Language="vb" %>
<%

'The strFileType is a constant in this sample.
'In your application, change it to the real type (e.g., HTML,PS, etc.)
'
Dim objWS As Interfax.Interfax 'Reference to local webservice proxy connector
Dim SendFaxResult as integer
objWS = new Interfax.Interfax

'
' Form variables
'
SendFaxResult = objWS.SendCharFax("<Username>","<password>","+1 212 345 6789","My fax contents", "txt")

objWS = Nothing

If SendFaxResult > 0 Then
Response.Write("Fax submitted. Transaction ID: " & SendFaxResult)
Else
Response.Write("Error sending fax. Return code: " & SendFaxResult)
End If

%>




About | Contact | Privacy | Terms | Partners | Login | System Status

© Interfax Inc