...

Developed or developing a new product in PureBasic? Tell the world about it.
Heathen
Enthusiast
Enthusiast
Posts: 498
Joined: Tue Sep 27, 2005 6:54 pm
Location: At my pc coding..

...

Post by Heathen »

....
Last edited by Heathen on Sat Oct 08, 2011 8:03 am, edited 4 times in total.
I love Purebasic.
User avatar
Kiffi
Addict
Addict
Posts: 1499
Joined: Tue Mar 02, 2004 1:20 pm
Location: Amphibios 9

Post by Kiffi »

Hello Heathen,

a small correction:

Replace this:

Code: Select all

  If Len(areacode) <> 3
    MessageRequester("Error","Incorrect amount of digits in the phone number, Only 7 digits are allowed")
    ProcedureReturn
  EndIf
with this:

Code: Select all

  If Len(areacode) <> 3
    MessageRequester("Error","Incorrect amount of digits in areacode, Only 3 digits are allowed")
    ProcedureReturn
  EndIf 
Greetings ... Kiffi
Heathen
Enthusiast
Enthusiast
Posts: 498
Joined: Tue Sep 27, 2005 6:54 pm
Location: At my pc coding..

Post by Heathen »

haha, I didn't even notice that. Thanks pal :)
I love Purebasic.
DarkDragon
Addict
Addict
Posts: 2345
Joined: Mon Jun 02, 2003 9:16 am
Location: Germany
Contact:

Post by DarkDragon »

Really free? In what parts of the world?
bye,
Daniel
Pantcho!!
Enthusiast
Enthusiast
Posts: 538
Joined: Tue Feb 24, 2004 3:43 am
Location: Israel
Contact:

Post by Pantcho!! »

Very nice :)

Add attachments to it so it will be MMS :D

My website is for parts of the world that doesnt support this,
for example not all mobile carriers give emails to their mobile users like in my country so i have to use WAP to get multimedia stuff.
SFSxOI
Addict
Addict
Posts: 2970
Joined: Sat Dec 31, 2005 5:24 pm
Location: Where ya would never look.....

Post by SFSxOI »

I was just thinking about something like this last night when my wife asked if there was a way to send a message to a cell phone from the computer, I said that I thought there was, and today i look and here it is. Thank You very much. :)
User avatar
GeoTrail
Addict
Addict
Posts: 2794
Joined: Fri Feb 13, 2004 12:45 am
Location: Bergen, Norway
Contact:

Post by GeoTrail »

Didn't work for me. I tried sending to a Telenor and a Netcom number but neither of the phones received the text message I sent.
I Stepped On A Cornflake!!! Now I'm A Cereal Killer!
ricardo
Addict
Addict
Posts: 2438
Joined: Fri Apr 25, 2003 7:06 pm
Location: Argentina

Post by ricardo »

Ive done something very similar for Argentina a few months ago.

The big job is to get the email servers for europe, USA, Canada, etc.
Heathen
Enthusiast
Enthusiast
Posts: 498
Joined: Tue Sep 27, 2005 6:54 pm
Location: At my pc coding..

Post by Heathen »

GeoTrail wrote:Didn't work for me. I tried sending to a Telenor and a Netcom number but neither of the phones received the text message I sent.
Yeah, I know that some carriers dont need the area code in the email so it will fail, and some emails could just be flat out wrong since I have not fully tested. This is just a prototype so people can get a general idea of how it works.

I've only tested this on one cell phone.
I love Purebasic.
User avatar
DoubleDutch
Addict
Addict
Posts: 3220
Joined: Thu Aug 07, 2003 7:01 pm
Location: United Kingdom
Contact:

Post by DoubleDutch »

Great program :)

if you add to the database the country codes that the service will go to it could regenerate the gadget list automatically dependent on the 1st digits of the proper phone number...

eg addgateway("Andhra Pradesh Airtel","airtelap.com","44.1") ; UK and USA

I think the general standard on smsgateways is that a full international number is the best way to go.

to save time you could have some default value boxes to insert default country codes, remove local codes, etc to build the international number automatically.
https://deluxepixel.com <- My Business website
https://reportcomplete.com <- School end of term reports system
DarkDragon
Addict
Addict
Posts: 2345
Joined: Mon Jun 02, 2003 9:16 am
Location: Germany
Contact:

Post by DarkDragon »

DarkDragon wrote:Really free?
bye,
Daniel
ricardo
Addict
Addict
Posts: 2438
Joined: Fri Apr 25, 2003 7:06 pm
Location: Argentina

Post by ricardo »

DarkDragon wrote:Really free? In what parts of the world?
Everywhere.

The idea is very simple:

You send an e mail to the mobile phone. Its receives it as an SMS.

Most companies offer this service for free to their users.

The important part is to know how to format the phone number to use it as the receipt for the e mail.

AFAIK has to eb done like this

Two digit for country code
4 digit for area code
Phone number without the frist 2 digits.

Per example, a mobile here in argentia is

54 02278 15872634

Then, must be formated like:

542278872634 (taking off the 15 of the mobile phone number and the 0 of the area code)

542278872634@whatevermail.com

Will send email to your phone

-------

As i said i develope sometime ago some app that does this for Argentina.
BUT i notice that some prepaid mobile phones in some cases (don't know which cases) DON'T receive this e mails.
Thats why i stop distributing this small app.
User avatar
DoubleDutch
Addict
Addict
Posts: 3220
Joined: Thu Aug 07, 2003 7:01 pm
Location: United Kingdom
Contact:

Post by DoubleDutch »

In the UK its:

country - first n digits (normally 2, but 1 in the case of the USA)

then mobile with the leading zero missing

You can (generally) also text house phones. A computer will ring the house and announce the message - with most providers.
https://deluxepixel.com <- My Business website
https://reportcomplete.com <- School end of term reports system
ricardo
Addict
Addict
Posts: 2438
Joined: Fri Apr 25, 2003 7:06 pm
Location: Argentina

Post by ricardo »

The risk of this apps it that some spammer find the way to send many e mails to many number (very easy to do in code side).
Heathen
Enthusiast
Enthusiast
Posts: 498
Joined: Tue Sep 27, 2005 6:54 pm
Location: At my pc coding..

Post by Heathen »

ricardo wrote:The risk of this apps it that some spammer find the way to send many e mails to many number (very easy to do in code side).
Unfortunately that's true. It's only a matter of time before spammers will move onto things like this. You cant stop these idiots.
I love Purebasic.
Locked