i am developing a hotel site. when a person submit the form
the message should to go their efax.how i should proceed. any body can help me?
i tried this code
Const StringToFax = "Hello world from text."
Dim objSoap, SendfaxResult
B = Stream_StringToBinary(StringToFax,"us-ascii")
Set objSoap = Server.CreateObject("MSSOAP.SOAPClient30")
objSoap.ClientProperty("ServerHTTPRequest") = True
objSoap.ConnectorProperty("EnableAutoProxy") = True
'SendfaxResult = objSoap.Sendfax("username", "password", "5480015", B , "txt")
SendfaxResult = objSoap.SendfaxEx_2("username", "password", "5480015", "", B, _
"txt", UBOUND(B)+1, Now, 3, "MyCSID", "", "", "Fax Subject", "email@example.com", _
"Letter", "Landscape", False, True)
'SendfaxResult = objSoap.Sendfax("your user name", "your password", "+44965157785", base64_Text, "html")
If CLng(SendfaxResult) > 0 Then
Response.Write "Fax submitted. Transaction ID: " & SendfaxResult
Response.Write "Error sending fax. Return code: " & SendfaxResult
Function Stream_StringToBinary(Text, CharSet)
Const adTypeText = 2
Const adTypeBinary = 1
'Create Stream object
Dim BinaryStream 'As New Stream
Set BinaryStream = CreateObject("ADODB.Stream")
'Specify stream type - we want To save text/string data.
BinaryStream.Type = adTypeText
'Specify charset For the source text (unicode) data.
If Len(CharSet) > 0 Then
BinaryStream.CharSet = CharSet
BinaryStream.CharSet = "us-ascii"
'Open the stream And write text/string data To the object
'Change stream type To binary
BinaryStream.Position = 0
BinaryStream.Type = adTypeBinary
'Open the stream And get binary data from the object
Stream_StringToBinary = BinaryStream.Read
Set BinaryStream = Nothing
but i ,m getting the error as
Server object, ASP 0177 (0x800401F3)
Invalid class string
/myweb/fax.asp, line 10
is this becos i m using ssoap client which is not supported
are you trying to get it to fax to the hotel or send them an email of the fax?
SOAP is supported as long as you have the dlls installed on the server. It looks like the code you have is example only code from the providers of the fax service. And which is line 10 of the code? Very difficult to track down the problem if we don't know which line the error refers to.
I have a 2d matrix with dimension (3, n) called A, I want to calculate the normalization and cross product of two arrays (b,z) (see the code please) for each column (for the first column, then the second one and so on).
the function that I created to find the ...
I'm working in Excel to extract content of a table from a web page and populate Excel sheet cells with it. I'm trying to extract data from a table that gets loaded to a web page after show results method gets called. I have an error that says "Run-time error ...
When accessing from ######1.co.uk (which has an SSL) to document root ###/production everything works fine.
However when accessing ###/production from ######2.co.uk (which doesn't have an SSL - set up in the vhost file) the home page displays fine but the other pages are returning a 404.
Here's the entry in ...