How to send SMS notification messages via PHP?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Niheel
    Recognized Expert Moderator Top Contributor
    • Jul 2005
    • 2432

    How to send SMS notification messages via PHP?

    I am trying to setup SMS messaging for a clients app. It's a simple add on where the client will be alerted if certain actions are taken by a user of the application.

    How would i set this up?
    Do I need special hardware?
    Are there third party libraries I can use?
    Do i need to signup for a gateway?
    Can i get some recommendations for any of these if they are required?
    Last edited by MMcCarthy; May 24 '10, 07:50 PM. Reason: testing auto pms
    niheel @ bytes
  • RedSon
    Recognized Expert Expert
    • Jan 2007
    • 4980

    #2
    Looks like you may be able to take advantage of the email to SMS gateway of most major carriers:

    ex: http://developer.t-mobile.com/loadKb...olutionId=2054

    Comment

    • Markus
      Recognized Expert Expert
      • Jun 2007
      • 6092

      #3
      Otherwise you'll have to purchase an SMS gateway. I've never used one, so I can't help :(

      Comment

      • georgeclrksn
        New Member
        • Aug 2011
        • 1

        #4
        You need to connect your application to SMS Gateway. Most SMS gateways provide external API which can be used to do that. They usually have documentation which you can use to find out how to integrate SMS notification in your PHP code. Unfortunately there are no reliable free sms service provides so you have to pay for this sms service. You can check http://www.phpjabbers.com/web-sms/ which seems to work a lot easy. Their integration code is pretty simple

        <?php
        $SMSLIB["phone"] = '44111222333'; // your phone number
        $SMSLIB["key"] = 'abcdefghijklmn opqrs'; // your personal API code
        include("smslib .php"); // we will provide you with smslib.php file
        sendSMS("test message", $SMSLIB["phone"]); // function which sends the message
        ?>

        Comment

        • robertanderson
          New Member
          • Oct 2013
          • 6

          #5
          Yes, I also suggest you to use an SMS gateway, such as Ozeki NG SMS Gateway!

          Comment

          Working...