Skip to content


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


6 Responses

Stay in touch with the conversation, subscribe to the RSS feed for comments on this post.

  1. Tester says

    Is a SMS free or must i buy credits?

    • m3Rlin says

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

  2. ShahRukh says

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

  3. Horizontica says

    How can I create a form to use it?

    • m3Rlin says

      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 says

    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!



Some HTML is OK

or, reply to this post via trackback.