...
Hello Heathen,
a small correction:
Replace this:
with this:
Greetings ... Kiffi
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
Code: Select all
If Len(areacode) <> 3
MessageRequester("Error","Incorrect amount of digits in areacode, Only 3 digits are allowed")
ProcedureReturn
EndIf
-
- Addict
- Posts: 2345
- Joined: Mon Jun 02, 2003 9:16 am
- Location: Germany
- Contact:
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.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.
I've only tested this on one cell phone.
I love Purebasic.
- DoubleDutch
- Addict
- Posts: 3220
- Joined: Thu Aug 07, 2003 7:01 pm
- Location: United Kingdom
- Contact:
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.

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
https://reportcomplete.com <- School end of term reports system
-
- Addict
- Posts: 2345
- Joined: Mon Jun 02, 2003 9:16 am
- Location: Germany
- Contact:
Everywhere.DarkDragon wrote:Really free? In what parts of the world?
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.
- DoubleDutch
- Addict
- Posts: 3220
- Joined: Thu Aug 07, 2003 7:01 pm
- Location: United Kingdom
- Contact:
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.
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
https://reportcomplete.com <- School end of term reports system