Send SMS

HMG Samples and Enhancements

Moderator: Rathinagiri

EduardoLuis
Posts: 651
Joined: Tue Jun 04, 2013 6:33 pm
Location: Argentina
Has thanked: 1 time
Been thanked: 61 times

Send SMS

Post by EduardoLuis » Mon Sep 22, 2014 8:46 pm

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

User avatar
danielmaximiliano
Posts: 2137
Joined: Fri Apr 09, 2010 4:53 pm
Location: Argentina
Has thanked: 154 times
Been thanked: 23 times
Contact:

Post by danielmaximiliano » Mon Sep 22, 2014 9:05 pm

Hola :

Roberto Lopez hizo este ejemplo .
Attachments
sms.rar
(4.69 KiB) Downloaded 245 times
*´¨)
¸.·´¸.·*´¨) ¸.·*¨)
(¸.·´. (¸.·` *
.·`.HMG : It's magic !
(¸.·``··*

Saludos / Regards
DaNiElMaXiMiLiAnO

Whatsapp. : +54901169026142
Telegram Name : DaNiElMaXiMiLiAnO

User avatar
danielmaximiliano
Posts: 2137
Joined: Fri Apr 09, 2010 4:53 pm
Location: Argentina
Has thanked: 154 times
Been thanked: 23 times
Contact:

Post by danielmaximiliano » Mon Sep 22, 2014 9:22 pm

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
*´¨)
¸.·´¸.·*´¨) ¸.·*¨)
(¸.·´. (¸.·` *
.·`.HMG : It's magic !
(¸.·``··*

Saludos / Regards
DaNiElMaXiMiLiAnO

Whatsapp. : +54901169026142
Telegram Name : DaNiElMaXiMiLiAnO

EduardoLuis
Posts: 651
Joined: Tue Jun 04, 2013 6:33 pm
Location: Argentina
Has thanked: 1 time
Been thanked: 61 times

Post by EduardoLuis » Mon Sep 22, 2014 9:41 pm

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

User avatar
danielmaximiliano
Posts: 2137
Joined: Fri Apr 09, 2010 4:53 pm
Location: Argentina
Has thanked: 154 times
Been thanked: 23 times
Contact:

Post by danielmaximiliano » Mon Sep 22, 2014 9:44 pm

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/
*´¨)
¸.·´¸.·*´¨) ¸.·*¨)
(¸.·´. (¸.·` *
.·`.HMG : It's magic !
(¸.·``··*

Saludos / Regards
DaNiElMaXiMiLiAnO

Whatsapp. : +54901169026142
Telegram Name : DaNiElMaXiMiLiAnO

EduardoLuis
Posts: 651
Joined: Tue Jun 04, 2013 6:33 pm
Location: Argentina
Has thanked: 1 time
Been thanked: 61 times

Post by EduardoLuis » Mon Sep 22, 2014 9:58 pm

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].

Javier Tovar
Posts: 1275
Joined: Tue Sep 03, 2013 4:22 am
Location: Tecámac, México
Has thanked: 1 time
Been thanked: 2 times

Post by Javier Tovar » Mon Sep 22, 2014 10:39 pm

Hola,

Se oye interesante el tema!!!

Saludos

User avatar
Agil Abdullah
Posts: 204
Joined: Mon Aug 25, 2014 11:57 am
Location: Jakarta, Indonesia
Contact:

Post by Agil Abdullah » Tue Sep 23, 2014 6:26 am

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.
Agil Abdullah Albatati (just call me Agil)
Programmer Never Surrender

User avatar
bpd2000
Posts: 1077
Joined: Sat Sep 10, 2011 4:07 am
Location: India
Has thanked: 197 times
Been thanked: 96 times

Post by bpd2000 » Tue Sep 23, 2014 6:34 am

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
BPD
Convert Dream into Reality through HMG

User avatar
Agil Abdullah
Posts: 204
Joined: Mon Aug 25, 2014 11:57 am
Location: Jakarta, Indonesia
Contact:

Post by Agil Abdullah » Tue Sep 23, 2014 6:45 am

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?
Agil Abdullah Albatati (just call me Agil)
Programmer Never Surrender

Post Reply