Answered by:
Retreiving sms messages from a website and posting them on foxpro!!

Question
-
Hi there,
Just wanted to start by saying a big thank you for all the information posted, your sources were very helpful and I intend to publish my findings so as to help others in similar situation.
MORE HELP NEEDED! I have found a sms provider on the internet and I have created a program using vfp to post sms messages from my desktop, this has involved using parameters that are added onto the provider’s site/server and make it possible to send messages.
LOCAL nAns,mStr,mTime,mPos,mResponse,mCopy,loIE
mCopy = mStr
thisform.lblSmartSMS.Caption = "Waiting for SmartSMS response"
mStr = "&Username=lolu@WORK.COM&Password=NEC677&Account=EX46732&Originator=Lolu&Recipient=" ;
+ ALLTRIM(this.parent.EsendexRecipient.Value) + "&body=FROM ABAL SECURITY " ;
+ thisform.encodeURL(mStr)
loIE = CREATEOBJECT('InternetExplorer.Application')
loIE.Navigate("https://www.esendex.com/secure/messenger/formpost/SendSMS.aspx?"+mStr)
IF thisform.WaitForReadyState(loIE)
mResponse = loIE.Document.Body.InnerHTMLELSE
MESSAGEBOX("Unable to connect to the SmartSMS Server",16,"Internet Connection Down")
ENDIF
loIE.Quit
loIE = nullthis.Enabled = .t.
My next task is to be able to show received messages on my desktop, although the messages received are available on their website, ideally I want fox pro to go and look up the <body> (website) and retrieve this messages from the websites source codes and post it on my form(form).
Wednesday, September 10, 2008 3:23 PM
Answers
-
- Proposed as answer by Ed Price - MSFTMicrosoft employee Thursday, December 13, 2012 11:01 PM
- Marked as answer by Ed Price - MSFTMicrosoft employee Friday, December 21, 2012 9:59 AM
Thursday, December 13, 2012 11:01 PM
All replies
-
-
- Proposed as answer by Ed Price - MSFTMicrosoft employee Thursday, December 13, 2012 11:01 PM
- Marked as answer by Ed Price - MSFTMicrosoft employee Friday, December 21, 2012 9:59 AM
Thursday, December 13, 2012 11:01 PM