wodXMPPCom cannot sendmessage (General questions)
I need to use sendmessage method instead of sendtext because GTALK under ANDROID phones ignores message of type normal , but I have a BIG problem with the following code (type mismatch sendmessage ) :
[code]
Dim XMPP1
Set XMPP1 = WScript.CreateObject( WeOnlyDo.wodXMPPCom.1 , wod_ )
XMPP1.LicenseKey = XXXX-XXXX-XXXX-XXXX
XMPP1.Login = xxxx@gmail.com
XMPP1.Password = mypass
XMPP1.Blocking = True
XMPP1.Connect ( talk.google.com )
dim jmsg
set jMsg = WScript.CreateObject( weonlydo.xmppmessage.1 )
jMsg.Type = 1
jMsg.Text = New chat message
jMsg.Subject = Livehelp
call XMPP1.SendMessage ( myaccount@gmail.com , jmsg)
[/code]
Is there a solution or an alternative for send through sendtext setting message type=1 ?
Re: wodXMPPCom cannot sendmessage
Alessandro,
hi. I'm not very good with wscript, so I am not sure how to duplicate htis problem. I created script with VBS extension, and I pasted your code inside, with my personal details.
Then I started it, and it worked without any errors. I didn't get error about type mismatch.
Is there something else I need to do?
Kreso