Enviar SMS

General Help regarding HMG, Compilation, Linking, Samples

Moderator: Rathinagiri

Post Reply
arroya2
Posts: 172
Joined: Thu Aug 06, 2009 7:16 am

Enviar SMS

Post by arroya2 »

En español.
Hola a Todos.
Quiero saber si desde una aplicación HMG se puede enviar SMS, y si se puede, como se hace.

Gracias de antemano.
Rafael Pérez

In English by Google.
Hi Everyone.
I want to know if HMG from an application can send SMS, and if possible, how.

Thanks in advance.
Rafael Perez
arroya2
Posts: 172
Joined: Thu Aug 06, 2009 7:16 am

Re: Enviar SMS

Post by arroya2 »

arroya2 wrote:En español.
Hola a Todos.
Quiero saber si desde una aplicación HMG se puede enviar SMS, y si se puede, como se hace.

Gracias de antemano.
Rafael Pérez

In English by Google.
Hi Everyone.
I want to know if HMG from an application can send SMS, and if possible, how.

Thanks in advance.
Rafael Perez
En Español:
Hola a todos de nuevo.

A ver si me puede alguien contestar por favor. Me han ofrecido añadir a una aplicación la posibilidad de enviar SMS. A ver si hay algún ejemplo de como hacerlo.

Gracias de antemano
Rafael Pérez

In English:
Hello everyone again.

Let's see if someone can answer me please. I've been offered an application to add the ability to send SMS. To see if there are any examples of how.

Thanks in advance
User avatar
gfilatov
Posts: 1116
Joined: Fri Aug 01, 2008 5:42 am
Location: Ukraine
Contact:

Re: Enviar SMS

Post by gfilatov »

arroya2 wrote:...
Let's see if someone can answer me please. I've been offered an application to add the ability to send SMS. To see if there are any examples of how.

Thanks in advance
Hello Rafael,

This possibility was added to Harbour contrib yesterday :!:

Please take a look for the following changelog:
+ contrib/hbsms
+ contrib/hbsms/Makefile
+ contrib/hbsms/hbsms.hbc
+ contrib/hbsms/hbsms.prg
+ contrib/hbsms/tests
+ contrib/hbsms/tests/hbmk.hbm
+ contrib/hbsms/tests/send.prg
+ Added SMS library. Currently sending is implemented.

SMS_SEND( <cPort>, <cPhoneNumber>, <cText>, [<lDeliveryReport>], [<cPIN>] ) -> <nErrorCode. 0 = success>

; Uses hbtpathy.
Usage:

Code: Select all

/*
 * Copyright 2009 Viktor Szakats (harbour.01 syenar.hu)
 * www - http://www.harbour-project.org
 */

#include "common.ch"

PROCEDURE Main( cPort )

#if   defined( __PLATFORM__WINDOWS )
   DEFAULT cPort TO "\\.\COM22"
#elif defined( __PLATFORM__DARWIN )
   DEFAULT cPort TO "/dev/tty.something-COM1"
#endif

   ? "start"
   ? sms_Send( cPort, "555555555", "teszt msg", .T. )
   ? "end"

   RETURN
I hope that helps. :idea:
Kind Regards,
Grigory Filatov

"Everything should be made as simple as possible, but no simpler." Albert Einstein
arroya2
Posts: 172
Joined: Thu Aug 06, 2009 7:16 am

Re: Enviar SMS

Post by arroya2 »

Español.
Gracias Grigory por contestar. Lo voy a poner en práctica y le contaré como me haya ido.

Saludos
Rafael Pérez

English by Google.
Grigory Thanks for answering. I'm going to implement and will tell as I am gone.

Greetings
Rafael Pérez
arroya2
Posts: 172
Joined: Thu Aug 06, 2009 7:16 am

Re: Enviar SMS

Post by arroya2 »

En Español.
Hola de nuevo Grigory.
Perdone que le moleste, pero necesito que me explique cómo funciona la función SMS_SEND.
He visto que hay que definir los puertos Com22 y Com1, pero físicamente ¿cómo se manda el mensaje al teléfono?, ¿se manda a través de Internet o hay que conectar a estos puertos algún periférico?

Muchas gracias
Rafael Pérez

In English by Google.
Grigory Hello again.
Sorry to bother, but I need to explain how it works SMS_SEND function.
I have seen to be defined and Com1 port Com22, but physically, how do you send a message to the phone?, Is sent over the Internet or you need to connect a peripheral to these ports?

Thank you very much
Rafael Pérez
User avatar
gfilatov
Posts: 1116
Joined: Fri Aug 01, 2008 5:42 am
Location: Ukraine
Contact:

Re: Enviar SMS

Post by gfilatov »

arroya2 wrote: I have seen to be defined and Com1 port Com22, but physically, how do you send a message to the phone?, Is sent over the Internet or you need to connect a peripheral to these ports?
Hi Rafael,

Please be so kind to revise the tutorials at
http://www.smssolutions.net/tutorials/

I hope that give you the ideas :idea:
Kind Regards,
Grigory Filatov

"Everything should be made as simple as possible, but no simpler." Albert Einstein
ClaudioGalera
Posts: 47
Joined: Tue Jul 14, 2009 1:14 pm
Location: Mar del Plata, Argentina

Re: Enviar SMS

Post by ClaudioGalera »

Hola Arroya2

Creo que la pregunta seria como desarrollar un cliente para enviar sms via internet.
Si es asi, creo que no es mas que un desarrollo de un cliente de email que conversa con un servidor tipo SMTP. Este link te puede ilustar como enviar via telnet usando smtp de un operador de telefonia celular http://www.psicofxp.com/forums/general- ... elnet.html
Otro ejemplo es si eres de Argentina con este sitio http://www.altoque.com/sms/mensajes_al_celular.php podras enviar sms a cualquier proveedor de celulares. Tu envio por supuesto sera gratis, el tema sera ver si el destinatario debera pagar o no por ese sms.
Espero que te sea util.
Saludos
Claudio

Google Translate

Hello Arroya2

I think the question would be how to develop a client to send sms via internet.
If so, I think is developing an email client that talks to a SMTP server type. This link will be illus like sending SMTP via telnet using a mobile phone operator http://www.psicofxp.com/forums/general- ... elnet.html
Other example if you are in Argentina with this site http://www.altoque.com/sms/mensajes_al_celular.php you can send sms to any cellular provider. Your course will be free shipping, the issue will be whether the recipient must pay or not for that sms.
I hope that you find useful.
Greetings
Claudio
arroya2
Posts: 172
Joined: Thu Aug 06, 2009 7:16 am

Re: Enviar SMS

Post by arroya2 »

En Español.
Hola Grigory y Claudio.

Creo que entre los dos enlaces que me habéis proporcionado, podré hacerme una buena idea de como funciona y como debo realizar mi programa.

Gracias a los dos.
Rafael Pérez

In English by Google.
Hello Grigory and Claudio.

I think between the two links you gave me, I can get a good idea of how it works and how I run my program.

Thank you both.
Rafael Perez
Post Reply