Diese Seite mit anderen teilen ...

Informationen zum Thema:
Forum:
WinDev Forum
Beiträge im Thema:
16
Erster Beitrag:
vor 5 Jahren, 9 Monaten
Letzter Beitrag:
vor 1 Jahr
Beteiligte Autoren:
Angiee, Paulo Oliveira, DanM, Jim Carson , Manfred, RAUL2

[WD14-16] Can WinDev send SMS Text Message to Cell Phone??

Startbeitrag von DanM am 14.02.2012 16:38

Can WinDev 14 or 16 send a text message to a cell phone from WinDev or do I need to pass the data to a 3rd party?

I tried looking up test message and SMS in the help system but could not find anything?

If WinDev cannot send the SMS ... does anyone have a 3rd party to recommend?

Thanks ... Dan

Antworten:

Dan,

Yes you can send SMS msgs with WD and WB. You can either sign up with a SMS Gateway provider and pay .07/per text sent or set up your own GPRS modem and pay for a line and it's msg cost or......for free, you can try just creating an email in WD/WB and formating it as follows:

format your email message so that the TO: field is "(recipients phone number)@(providerWebTxtAddress)" (example "3331112222@vtext.com") if you are sending to a verizon phone. Each provider (cell carrier) is different. Sometimes you must limit the message to 160 chr if the user still has an older phone. For a current list of the Cell Provider SMS list, see http://en.wikipedia.org/wiki/List_of_SMS_gateways

Note: all providers do not support this and sometimes you at the mercy of the praticular provider to the speed and guarantee that the message was sent. I have found pretty good response with those that I have tested. And it is free.

von Jim Carson - am 14.02.2012 17:33
Some operators provide webservices to do so and it's easy to implement in WD or WB.
If you have any kind of GSM modem or you can connect your phone to the pc (by instance thru bluetooth or infrared) and configure it as a modem you cand send SMS thru AT commands using SOPEN/SWRITE and so on.

to know the sintax of the at commands google is a good friend.

von Paulo Oliveira - am 14.02.2012 17:54
DanM see www.mctel.fr, exist a example on Windev 15 training examples




Uploaded with ImageShack.us

If need the sample code i will send

Regards

Manfred :spos:

von Manfred - am 14.02.2012 18:12
Jim,

Thank you ... It does not get easier than sending an email & free too!

I have been sending emails for a long time!

Thanks to all for responding!

Just out of curiosity? ... how does one find that information in the help system?

I have been looking for a while ... is it in the the help system ... If yes ... where?

Thanks Again !

Dan

von DanM - am 14.02.2012 20:43
Dan,
I went and searched the help. The only reference to SMS is in regards to WM. I think I picked up my knowledge both by other users on this forum and searching 'Email to SMS' on the web. Whatz the old saying.... Put down the donut, step out of the box. :xcool: Pretty much always a solution.
Regards,
Jim

von Jim Carson - am 14.02.2012 22:17
Hi. Try using "the guide" in WD: ? (menu) --> See the guide --> enter your keyword.
Regards.

von RAUL2 - am 21.02.2012 15:27
Hey, please can anyone help me implement sending SMS via WB

von Angiee - am 31.10.2016 16:52
How do you want to send the sms? Using one GSM modem or using some kind of service like bulksms os any other sms service provider?

von Paulo Oliveira - am 31.10.2016 17:16
Using bulksms or any other sms service provider

von Angiee - am 31.10.2016 17:26
They will provide you the API description usually in HTTP GET or POST.
You can find several sms providers, just google it and choose acording to your needs and prices.

You can program it in your APP using the HTTPSend or HTTPRequest functions.
http://doc.windev.com/en-US/?1000021158
http://doc.windev.com/en-US/?1000021165
http://doc.windev.com/en-US/?1000021183
http://doc.windev.com/en-US/?3043007

von Paulo Oliveira - am 31.10.2016 17:40
can you provide some source code?

von Angiee - am 31.10.2016 17:45
You have to choose the provider first every one of them have it's own API.
In most cases the pricing is very country dependent.

In some sms provider you can create one demo account to test your app for free.
I have done it for 4 provider in my country and two are using HTTP (one of them with free account to test) and the others are using SOAP without free accounts.

von Paulo Oliveira - am 31.10.2016 18:21
Yes, i opened an account in twilio and there are codes implemented in java and other languages, can you provide me with source code in WL

von Angiee - am 31.10.2016 18:32
I never used twilio.

Sample code for the www.smsbulk.com.pt (GET):
Procedure_send_sms(p_usr,p_pwd,p_dest,p_msg)
L_Result is boolean
L_Result_Request is boolean
L_Result_String is string
L_URL_SMSBULK_0, L_URL_SMSBULK are string
L_Mensagem is string
//
L_URL_SMSBULK_0="http://www.smsbulk.com.pt/sms_send.php?uid="+p_usr+"&pwd="+p_pwd+"&tel=%1&msg=%2";
//
L_Result=False
L_Msg=Replace(p_msg,CR," ")
L_Msg=NoAccent(Replace(L_Msg," ","+"))
L_URL_SMSBULK=StringBuild(L_URL_SMSBULK_0,p_dest,p_msg)
L_Result_Request=HTTPRequest(L_URL_SMSBULK)
IF NOT L_Result_Request THEN
RESULT False
END
L_Result_String=HTTPGetResult(httpResult)
//
IF StringCount(L_Result_String,"OK",IgnoreCase)>0 THEN
L_Result=True
ELSE
L_Result=True
END

RESULT L_Result

von Paulo Oliveira - am 31.10.2016 18:39
thanks a lot

von Angiee - am 31.10.2016 18:40
Zur Information:
MySnip.de hat keinen Einfluss auf die Inhalte der Beiträge. Bitte kontaktieren Sie den Administrator des Forums bei Problemen oder Löschforderungen über die Kontaktseite.
Falls die Kontaktaufnahme mit dem Administrator des Forums fehlschlägt, kontaktieren Sie uns bitte über die in unserem Impressum angegebenen Daten.