Sending SMS with PHP

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • DJ Craig

    #1

    Sending SMS with PHP

    How do you send an SMS with PHP? Right now, I send text messages to
    verizon users by just adding @vtext.com to their phone number and
    emailing that. Is there something like this that I could do for other
    phone companies? Or is there some universal way to send a text message
    to any number from PHP?

  • Nicholas Sherlock

    #2
    Re: Sending SMS with PHP

    DJ Craig wrote:[color=blue]
    > How do you send an SMS with PHP? Right now, I send text messages to
    > verizon users by just adding @vtext.com to their phone number and
    > emailing that. Is there something like this that I could do for other
    > phone companies? Or is there some universal way to send a text message
    > to any number from PHP?[/color]

    Yes, send through a SMS gateway. Clickatell is one:
    http://www.clickatell.com . IIRC, they have an API which allows you to
    send messages through SMTP or a normal HTTP POST.

    Cheers,
    Nicholas Sherlock

    Comment

    • francois@bonzon.com

      #3
      Re: Sending SMS with PHP

      There exists other gateways as well. http://www.aspsms.com/ is the one
      I use to send SMS with PHP. Some guy wrote a nice PHP class that
      handles everything between the gateway and your script:


      Then, sending an SMS becomes as easy as:

      $sms->setOriginator( "...");
      $sms->addRecipient(" ...");
      $sms->setContent(" An SMS message.");

      Usage of al those SMS gateways is not free though, but prices are
      cheaper than sending SMS with mobile phones.

      Comment

      • DJ Craig

        #4
        Re: Sending SMS with PHP

        Thanks, that's exactly what i was looking for. But in the end, I found
        a slightly messier, less reliable way of doing this for free:


        Comment

        • sibob

          #5
          Re: Sending SMS with PHP


          You can try StrikeIron's reliable Global SMS service - covers 416
          carriers in 160 countries.

          Improve customer engagement and streamline operational efficiency by using Informatica's Data as a Service solutions to validate and verify your customer data.


          Also comes with PHP & Perl code examples for the Global SMS Web Service
          - all you need is the number and text to send, and it can be integrated
          into any application or Web site, as well as used from a Web form or
          desktop client.

          PHP Code Example:

          Improve customer engagement and streamline operational efficiency by using Informatica's Data as a Service solutions to validate and verify your customer data.



          DJ Craig wrote:[color=blue]
          > How do you send an SMS with PHP? Right now, I send text messages to
          > verizon users by just adding @vtext.com to their phone number and
          > emailing that. Is there something like this that I could do for other
          > phone companies? Or is there some universal way to send a text message
          > to any number from PHP?[/color]

          Comment

          Working...