Link to home
Start Free TrialLog in
Avatar of b001
b001Flag for Afghanistan

asked on

vfp9 send sms message

Hi Experts

I would like to send SMS from vfp9 programe.
I found
Bulletin Solutions on line to buy the service and they give the following to code use.

// Using the org.apache.commons.httpclient library
String target = "https://www.bulletinmessenger.net/api/3/sms/out";
PostMethod postMethod = new PostMethod(target);

postMethod.addParameter("userId", username);
postMethod.addParameter("password", pwd);
postMethod.addParameter("to", dest);
postMethod.addParameter("body", msg);

// Send the message!
new HttpClient().executeMethod(postMethod);

I do not know how to use or convert this code to vfp code

Please help.
ASKER CERTIFIED SOLUTION
Avatar of Olaf Doschke
Olaf Doschke
Flag of Germany image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of b001

ASKER

Thanks Olaf_Doschke
This works brilliantly.

Is it possible to send sms using my own phone through bluetooth  ?

Thanks
You can use if your phone has COM Port Functionality or you can use any GSM Modem to Send SMS like normal mobile sms.

you can use AT Command to send SMS From Mobile/GSM Modem.

check below link for SMS using Mobile.

http://www.foxite.com/archives/how-can-i-send-sms-by-vfp6-0000066718.htm


-Kalpesh
Really? Wouldn't you simply send an SMS from your phone without going through bluetooth and your computer?

The bluetooth connection is merely for loading files to or from the phone, isn't it? Or to use internet connection.

What are you capable to program for your phone? What phone is it? Is it a legacy cell phone, or rather a smartphone? Is it iOS, Android or something else?

Simply look at https://www.bulletin.net/docs/display/API/Bulletin+API+-+HTML+Send+Tutorial
You can write a html file with this instruction and use it on your smartphone, it only needs a browser.

As said, they offer many ways, just take your time and look around.

Bye, Olaf.
Avatar of b001

ASKER

Hi Olaf_Doschke
I am trying to write a small project where when a job is completed my customer can send a message to their customer automatically confirming that job is completed.
So when the invoice is printed it will send SMS to the customer.

Thanks
That's fine, but doesn't help me to help you about doing that from the phone instead of from a pc.

You can't run a foxpro app on any phone, the whole application would have to be written for phones to be able to use it from there.

Bye, Olaf.