Page 1 of 3

Send SMS

Posted: Mon Sep 22, 2014 8:46 pm
by EduardoLuis
Hi Friends:

I need to improve a routine in which, if a product has been delivered, buyers recieve automatically ans SMS containing data (deliver number, date & time deliverd, and quantity).-
Actually my develope sends a mail , but end user want SMS.-
If someone could give any idea, will be aprecciated.-
With regards.
Eduardo

Re: Send SMS

Posted: Mon Sep 22, 2014 9:05 pm
by danielmaximiliano
Hola :

Roberto Lopez hizo este ejemplo .

Re: Send SMS

Posted: Mon Sep 22, 2014 9:22 pm
by danielmaximiliano
Hola Eduardo :

en Harbour hay una libreria llamada HBsms dentro de \Contrib..

utiliza el modem pendrive ya que dicho modem contiene el chip de telefonia celular.
en mi caso tengo uno tirado que me dejo un cliente : Huawei E170

puede ser que haya empresas que cobren este servicio y entonces lo manejaras mediante HTTPs:// con la libreria HBTIP

estoy mirando aca : http://www.developershome.com/sms/freeLibForSMS.asp

Re: Send SMS

Posted: Mon Sep 22, 2014 9:41 pm
by EduardoLuis
Hola Dany:

Ya descargue el SMS de Roberto.-
Si mal no entendí, tengo que conectar el modem usb.-
En casa tengo un DLink wireless 150, no se si servirá, y si tengo a mano los drivers.-
Tendré que esperar para probarlo.- Espero que funcione, ya que eso me acercaría a la solución.-
VOy a analizar el PRG de Roberto.-
Gracias Dany como siempre un caballero.-
Te mando un abrazo y te tengo al tanto de que pasó.-
Eduardo

Re: Send SMS

Posted: Mon Sep 22, 2014 9:44 pm
by danielmaximiliano
EduardoLuis wrote:Hola Dany:

Ya descargue el SMS de Roberto.-
Si mal no entendí, tengo que conectar el modem usb.-
En casa tengo un DLink wireless 150, no se si servirá, y si tengo a mano los drivers.-
Tendré que esperar para probarlo.- Espero que funcione, ya que eso me acercaría a la solución.-
VOy a analizar el PRG de Roberto.-
Gracias Dany como siempre un caballero.-
Te mando un abrazo y te tengo al tanto de que pasó.-
Eduardo
No eduardo .. un Modem SMS esos que parecenun pendrive y se le introduce el chip de la empresa movil.
si tenes Movistar podes usar esto : https://enviamensajes.movistar.es/EnviaMensajes/

Re: Send SMS

Posted: Mon Sep 22, 2014 9:58 pm
by EduardoLuis
Hola Dany:

Ahora entendí.-
De paso te copio algo que acabo de ver en la WEB.-
Aparentemente debería funcionar, el tema es saber cual el carrier de cada empresa aca, no ?

Sending a text message to a mobile phone from your computer is much easier and faster than doing it from the limited keypad and tiny screen of a mobile phone [source: Pogue].
In this article, we'll show you how to e-mail text messages directly to a mobile phone.
Open your e-mail program and start a new e-mail message.
Enter the cell phone number in the To: box using the format number@teleflip.com, where "number" is the phone number of the cell phone to which you're sending the message. For example, to send a text message to cell phone 123-456-7890, enter 1234567890@teleflip.com.
Type a message of up to 160 characters in the message box and then click Send. Your message will shortly appear on the cell phone. You may want to test it on your own cell phone to make sure it works [source: Pogue].
Note: Many cell phone carriers allocate e-mail addresses to their customers' phone numbers to enable them receive e-mail text messages. If you know the carrier of the cell phone you want to send text messages to, you can use it instead of the teleflip.com domain name. Here are the domain names of some of the more popular carriers:
Alltel: @message.alltel.com
Nextel: @messaging.nextel.com
Sprint: @messaging.sprintpcs.com
SunCom: @tms.suncom.com
T-mobile: @tmomail.net
VoiceStream: @voicestream.net
Verizon: @vtext.com (text only) or @vzwpix.com (photos and video) [source: Slipstick Systems].

Re: Send SMS

Posted: Mon Sep 22, 2014 10:39 pm
by Javier Tovar
Hola,

Se oye interesante el tema!!!

Saludos

Re: Send SMS

Posted: Tue Sep 23, 2014 6:26 am
by Agil Abdullah
Hi Daniel,

I tried to build from your-sources attached above, but find the following error:

--------------------------------------------------------------------------------------------------------
Harbour 3.2.0dev (r1407111333)
Copyright (c) 1999-2014, http://harbour-project.org/" onclick="window.open(this.href);return false;" onclick="window.open(this.href);return false;
C:/Users/toshiba/AppData/Local/Temp/hbmk_u2z9ms.dir/main.o:main.c:(.data+0x208): undefined reference to `HB_FUN_INIT_PORT'
C:/Users/toshiba/AppData/Local/Temp/hbmk_u2z9ms.dir/main.o:main.c:(.data+0x218): undefined reference to `HB_FUN_ISWORKING'
C:/Users/toshiba/AppData/Local/Temp/hbmk_u2z9ms.dir/main.o:main.c:(.data+0x278): undefined reference to `HB_FUN_UNINT_PORT'
C:/Users/toshiba/AppData/Local/Temp/hbmk_u2z9ms.dir/main.o:main.c:(.data+0x288): undefined reference to `HB_FUN_OUTCHR'
C:/Users/toshiba/AppData/Local/Temp/hbmk_u2z9ms.dir/main.o:main.c:(.data+0x298): undefined reference to `HB_FUN_INBUFSIZE'
C:/Users/toshiba/AppData/Local/Temp/hbmk_u2z9ms.dir/main.o:main.c:(.data+0x2c8): undefined reference to `HB_FUN_INCHR'
C:/Users/toshiba/AppData/Local/Temp/hbmk_u2z9ms.dir/send.o:send.c:(.data+0x78): undefined reference to `HB_FUN_INIT_PORT'
C:/Users/toshiba/AppData/Local/Temp/hbmk_u2z9ms.dir/send.o:send.c:(.data+0xa8): undefined reference to `HB_FUN_ISWORKING'
C:/Users/toshiba/AppData/Local/Temp/hbmk_u2z9ms.dir/send.o:send.c:(.data+0xc8): undefined reference to `HB_FUN__INIT_MSG'
C:/Users/toshiba/AppData/Local/Temp/hbmk_u2z9ms.dir/send.o:send.c:(.data+0xd8): undefined reference to `HB_FUN__SEND_SMSMSG'
C:/Users/toshiba/AppData/Local/Temp/hbmk_u2z9ms.dir/send.o:send.c:(.data+0x108): undefined reference to `HB_FUN_UNINT_PORT'
C:/Users/toshiba/AppData/Local/Temp/hbmk_u2z9ms.dir/send.o:send.c:(.data+0x118): undefined reference to `HB_FUN_OUTCHR'
C:/Users/toshiba/AppData/Local/Temp/hbmk_u2z9ms.dir/send.o:send.c:(.data+0x128): undefined reference to `HB_FUN_INBUFSIZE'
C:/Users/toshiba/AppData/Local/Temp/hbmk_u2z9ms.dir/send.o:send.c:(.data+0x168): undefined reference to `HB_FUN_INCHR'
collect2: ld returned 1 exit status
hbmk2[sms]: Error: Running linker. 1
-------------------------------------------

Pls kindly help. Thanks.

Also thanks to EduardoLuis for sharing this topic.

Re: Send SMS

Posted: Tue Sep 23, 2014 6:34 am
by bpd2000
Agil Abdullah wrote:Hi Daniel,

I tried to build from your-sources attached above, but find the following error:

Pls kindly help. Thanks.

Also thanks to EduardoLuis for sharing this topic.
Compile as under:

c:\hmg\build sms sms.hbc

Re: Send SMS

Posted: Tue Sep 23, 2014 6:45 am
by Agil Abdullah
I did : call c:\hmg.3.3.1\build.bat sms sms.hbc
but still error:
------------------------------
hbmk2: Compiling Harbour sources...
Harbour 3.2.0dev (r1407111333)
Copyright (c) 1999-2014, http://harbour-project.org/" onclick="window.open(this.href);return false;
hbmk2: Compiling...
hbmk2: Linking... sms.exe
.hbmk/win/mingw/send.o:send.c:(.data+0xc8): undefined reference to `HB_FUN__INIT_MSG'
.hbmk/win/mingw/send.o:send.c:(.data+0xd8): undefined reference to `HB_FUN__SEND_SMSMSG'
collect2: ld returned 1 exit status
--------------------------------

Any idea?