Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 10 of 10
  1. #1
    Regular Coder
    Join Date
    Dec 2006
    Posts
    417
    Thanks
    168
    Thanked 1 Time in 1 Post

    using PHP to send SMS texts

    has anyone managed to do this?

    google says it cant be done

  • #2
    Master Coder
    Join Date
    Apr 2003
    Location
    in my house
    Posts
    5,211
    Thanks
    39
    Thanked 201 Times in 197 Posts
    Quote Originally Posted by Bobafart View Post
    has anyone managed to do this?

    google says it cant be done
    uh?? Where does it say that?

    It has been done. I need to try to do it but haven't actually got around to it so I don't know the exact position with regard to whether it has to use a specific airtime provider and such-like.

    bazz

  • #3
    Regular Coder
    Join Date
    May 2006
    Location
    Wales
    Posts
    820
    Thanks
    1
    Thanked 82 Times in 79 Posts
    You could use a gateway such as tm4b to send texts for you

  • #4
    Senior Coder
    Join Date
    Jul 2005
    Location
    UK
    Posts
    1,051
    Thanks
    6
    Thanked 13 Times in 13 Posts
    You basically use your personal or business mobile number and use that via an SMS API gateway. There are lots of free gateways out there, eg http://www.txtlocal.co.uk/, but the catch comes in having a network contract cheap enough (or with enough free minutes) to be able to run the messages from.

  • #5
    Regular Coder
    Join Date
    Nov 2007
    Posts
    144
    Thanks
    64
    Thanked 0 Times in 0 Posts
    Or you can use someone who uses an API, such as www.clickatell.com, then you just get PHP to form a URL for you which gets submitted when you click submit and it goes through the internet, through clickatell to the mobile phones.

  • #6
    Super Moderator JohnDubya's Avatar
    Join Date
    Nov 2006
    Location
    Missouri
    Posts
    634
    Thanks
    12
    Thanked 18 Times in 18 Posts
    Another SMS company I've found (but haven't used) is SMS Everywhere ( http://www.smseverywhere.com/ ).

  • #7
    Regular Coder
    Join Date
    Aug 2002
    Location
    Oregon, United States of America
    Posts
    882
    Thanks
    1
    Thanked 9 Times in 9 Posts
    If you want to let your users choose their provider from a list, using PHP to email one of these email addresses will do the trick.
    If I'm postin here, I NEED YOUR HELP!!

  • #8
    Regular Coder
    Join Date
    Apr 2006
    Posts
    231
    Thanks
    9
    Thanked 1 Time in 1 Post
    PHP will proccess whatever info you give it, but it doesn't have the power to send an actual sms. There are companies that have their crap set up that will take a sms from a pc and send it into the actual cellphone. Those charge per sms something like 1cent a sms. The big companies rely on ads hoping that one click of an ad will generate more.

    Us small companies use API and cheat our way

  • #9
    New to the CF scene
    Join Date
    Sep 2009
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts
    how can it be done if I want the sms not using others gateway?
    I want to use my own mobile "SIEMENS C55" instead of it.

    It's Successful using "Gammu", but still have bugs, the sms no alert and only works on Mysql.

  • #10
    Regular Coder hinch's Avatar
    Join Date
    Sep 2005
    Location
    UK
    Posts
    923
    Thanks
    25
    Thanked 80 Times in 80 Posts
    if your doing it with your own phone and a data cable its a 2 step process.

    php website stores sms to send in a db table to number and message.

    then every 60 seconds say you have a background process running on the server which reads that message and and control the phone to send. This software would be typically written in c/c++/c#/java something that can control serial interfaces and such

    Now Nokia used to have a wap application gateway server years ago (don't know if they still do) that allowed you to do just that and also allowed others to dial into your pc using your mobile number and it would then serve up pages from the site too as well as allowing sending/receiving of sms's. it was written in java and was easily extendible. perhaps something like that exists already for your phone.

    though personally i'd go down the cheaper route of getting an sms gateway provider. there's quite a few out there where all you need to do is send an email to phonenumber@smsgatewayprovider.xxxx

    and it'd do the rest for you
    A programmer is just a tool which converts caffeine into code

    My work: http://www.fcsoftware.co.uk && http://www.firstcontactcrm.com
    My hobby: http://www.angel-computers.co.uk
    My life: http://www.furious-angels.com


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •