Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. file info. rss.
 From: naveed ahmad
  Where is naveed ahmad?
 peshawar
 Pakistan
 naveed ahmad
 To: Cetin Basoz
  Where is Cetin Basoz?
 Izmir
 Turkey
 Cetin Basoz
 Tags
Subject: RE: sms from vfp app.
Thread ID: 395609 Message ID: 395619 # Views: 59 # Ratings: 0
Version: Visual FoxPro 9 Category: General VFP Topics
Date: Thursday, January 16, 2014 1:45:12 PM         
   


> > hi Experts
> > i want to make sms form in my vfp application,please guide me how to do it,
> > thanks
> > best regards.
>
> Naveed,
> We are using Nexmo service. For Pakistan, it says $0.0068 per SMS. Here is the code to use the service (you get a number from them, there is free trial):
>
>
>
> NexmoKey    = 'yourNexmoKey'
> NexmoSecret = 'yourNexmoPwd'
> NexmoNumber = 'yourNexmoNumber or symbolic name such as MyAppName if you havent got a nexmo number yet and using trial - have limitations'
> 
> nexmoURL = Textmerge(;
> 	"http://rest.nexmo.com/sms/xml?"+;
> 	"username=<< m.NexmoKey >>|"+;
> 	"password=<< m.NexmoSecret >>|"+;
> 	"from=<< m.NexmoNumber >>")
> 
> Text to lcMessage noshow
> It is simple and fast to use Nexmo sms. It is also cheaper than many.
> EndText
> 
> MyCellPhone = '+905321112233' && +90 country code, 532 carrier, 1112233 fake number
> 
> TrySendSMS(m.MyCellPhone,m.lcMessage, m.NexmoUrl)
> 
> Procedure TrySendSMS(tcPhone,tcMessage, tcNexmoUrl)
> 	tcMessage = Strtran(m.tcMessage, '%0A', '%0D%0A')
> 	lcUrl = Chrtran(;
> 		Textmerge("<< m.tcNexmoUrl >>|to=<< m.tcPhone >>|text=<< m.tcMessage >>"), '|', Chr(38))
> 	Local loXmlHttp As "Microsoft.XMLHTTP"
> 	loXmlHttp = Newobject( "Microsoft.XMLHTTP" )
> 	loXmlHttp.Open( "POST" , m.lcUrl, .F. )
> 	loXmlHttp.Send( )
> 
> 	? loXmlHttp.Status  && 200 success code
> 	? loXmlHttp.responsetext
> Endproc

>
> PS: I am not a Nexmo evangelist, nor have any affiliation with them. Just a satisfied customer (after trying Skype for example).
>
>

> Cetin Basoz
>
> Give some sample data in code for your question - here is the tool you need to generate the code
>
> My Blog
>

> MongoDb Certified Developer
> MongoDb Certified DBA
>

> Support Wikipedia


thanks a lot sir

ENTIRE THREAD

sms from vfp app. Posted by naveed ahmad @ 1/16/2014 12:46:22 PM
RE: sms from vfp app. Posted by David Mustakim @ 1/16/2014 12:48:51 PM
RE: sms from vfp app. Posted by naveed ahmad @ 1/16/2014 1:43:50 PM
RE: sms from vfp app. Posted by Cetin Basoz @ 1/16/2014 1:39:53 PM
RE: sms from vfp app. Posted by David Mustakim @ 1/16/2014 1:45:02 PM
RE: sms from vfp app. Posted by Cetin Basoz @ 1/16/2014 2:31:10 PM
RE: sms from vfp app. Posted by David Mustakim @ 1/16/2014 2:46:22 PM
RE: sms from vfp app. Posted by Cetin Basoz @ 1/16/2014 6:49:36 PM
RE: sms from vfp app. Posted by santan dias @ 1/18/2014 6:24:47 AM
RE: sms from vfp app. Posted by naveed ahmad @ 1/16/2014 1:45:12 PM
RE: sms from vfp app. Posted by M. Tanveer Ul Hassan Shaheen @ 1/17/2014 3:55:29 AM
RE: sms from vfp app. Posted by naveed ahmad @ 1/18/2014 8:22:49 AM