PHP2SMS

PHP2SMS Project

PHP2SMS is script written in PHP that allows you to send text messages (SMS) to cell phones. It works using WWW forms provided by cellular providers. It basically automates sending SMS messages via WWW, the script sends POST information to the server as if you had filled out the form online. It also uses e-mail gateways that are provided by numerous cell phone carriers.

Donate!

Download PHP2SMS

To download the script just download this file: php2sms.php.txt , remove the “.txt” extension and add the <?php ?> tags. That’s all folks!

Which Networks are Supported?

Currently the script offers support for:

  • AT&T Wireless www.attwireless.com
    Supports from and subject fields. AT&T Digital PCS phones have a 110-character limit on messages.
  • T-Mobile www.t-mobile.com
    Supoprts from field only. The maximum message can be 140 characters long.

Usage

Donate!

1. Download the script.
2. Copy the script to a directory of your choice.
3. Use the script.

Now let’s focus on the last point, point 3. Using the script is very easy, all the variables are passed as GET arguments. Your biggest concern is to know what network you are sending to. Each cellular network has it’s own WWW->SMS gateway and will not send to other networks. Although you can send text messages to virtually anyone with your cell phone this does not apply to WWW->SMS gateways.

Syntax:

http://www.yourserver.com/sms.php?network=%network%&to=%to_number%&from=%from_number%&subject=%subject%&message=%message%

Where:
%network% – the symbol of the network you wish to send an SMS message to. Currently AT&T and T-Mobile are supported. Their values are:

att – AT&T
t-mobile – T-Mobile

  1. Tester
    October 2nd, 2009 at 03:57 | #1

    Is a SMS free or must i buy credits?

    • October 6th, 2009 at 23:48 | #2

      SMS in itself is free and this script uses only free methods of sending SMS messages.

  2. November 30th, 2009 at 02:51 | #3

    I want to use this script for pakistan can u help me out for gateways etc?

  3. Horizontica
    January 27th, 2010 at 18:20 | #4

    How can I create a form to use it?

    • January 28th, 2010 at 01:02 | #5

      Hi,

      If you need help setting up forms or scripts using this script please contact me for reasonable rates for consulting and programming.

  4. brian
    February 19th, 2010 at 16:07 | #6

    Please show us a demo. I would like to be able to see how the script works and even tests it before using it! Thanks!

  5. dias arauz
    June 10th, 2010 at 01:17 | #7

    Hi I have a question you could put a video tutorial of how it works and step by step to do to put it to work or what to do from scratch. please response to e-mail

  6. Navas
    June 30th, 2010 at 06:56 | #8

    @Jacob Dybala
    Dear Jacob,

    Can we use it for any generic purpose ? I have the SMPP server and planned to make connection with various gateways like routesms, clickatell etc… If so i want use such front end to send the message from the browser.

    can you pls help ?

    -Navas

  7. July 2nd, 2010 at 14:34 | #9

    @Navas
    Hi Navas,

    The script can be updated to support virtually all SMS networks and serve as an SMS gateway. What you are trying to do is exactly what the script was created to do. Let me know what you need help with!

  8. August 22nd, 2010 at 23:33 | #10

    Hi
    I like to use your script but my provides is presently Verizon
    Can make changes to accommodate this network?
    I like to use it for my clients, so they can text me form my site.
    Thanx