Free SMS gateway


Text message has widely usage via cell phone. In this article we will show you in steps that how we can setup SMS gateway using our cell phone. Once we are done then we will be able to send/recieve text message on the web.

Here is our initial requirement, what we need before setting up free SMS gateway:

1. A computer, we use the OS Windows XP. I use Win XP on laptop Byon Centrino Duo, 2G RAM.
2. A gsm modem or mobile phone that can work as a gsm modem. I use Sony Ericsson K750i with the number IM3
3. Cable or bluetooth connection to the HP computer. I’m using the cable that comes with SE K750i
4. Driver mobile phone or PC suite; the author using the PC suite that is available in the sales package SE K750i
5. A mobile phone to send sms; I’m using Motorolla W150i with a number Fren
6. A software as a gateway. I use nowsms
7. Apache, MySQL and PHP; I use appserv 2.5.7

The first step is to install appserv on our computer.

1. Test in the browser by typing http://localhost, is already showing? If already showing some webpage, means Webserver webserver is already setup.
2. Type the test again next http://localhost/phpmyadmin. If it means that PHP is the way and MySQLnya already functioning well

Step two is to connect the phone to the computer. Do not forget to install the driver or HP’s PC Suite. Make sure the computer and HP already well connected.

Step three is to install NowSMS. File installer Now SMS / MMS gateway is comon 7.42 MB and can be easily downloaded in http://www.nowsms.com. Software is paid but we can try for free and full functionality for 60 days.

Once we install we will get interface like this:

Now SMS

Four step is to add a modem gsm / HP :

1. click Add
2. Select Phone or GSM modem and click OK

Select the modem and we fill pin, the SE default PIN is 1234. Click Test and add a modem. If any posts appear successful modem successfully tested!

Step five is to setting up SMSC connection:

1. Click on the menu at the top of the SMSC
2. SMSC connection you select, these cases are added is the new Sony Ericsson 750 USB WMC Modem.
I want to add other devices to stay a step to follow the four
3. Click properties and fill in the phone number in the modem / HP SE K750i (in this case the number IM3)
4. check receive SMS Messages

5. Click OK

Step six is to run the SMS gateway service:

1. Click Service in the menu on the nowsms program.
2. Sms gateway then check run as a service.
3. You will dimintai approval and nowsms will restart itself automatically to run as a service.
following SMS picture which is now functioning as a service:

Step seven is to try to send sms through the web interface:

1. By default sms now running on the localhost or the ip address 127.0.0.1 with port 8800
2. We open a browser and type the following address: http://localhost:8800
3. interface will appear like this:

4. Fill Text and phone number and click submit
5. Now you have sent the SMS to the recipient’s number

Are you satisfied now with this? I’m not though. Let us now connect the sms with PHP and MySQL. (But sorry, I make a cup of tea first with Samosa. Hungry …)

Now connect the sms / mms gateway with PHP and MySQL:

SMS will be sent later with the W150i phone that functions as an sms. HP and received K750i (gsm modem) is forwarded to the computer that received sms gateway sms now and then forwarded to the php script. PHP script and then proceed to save the MySQL database.

The first step is to create a database with the name mysql nowsms

1. http://localhost/phpmyadmin type in the browser to open phpmyadmin
2. type the name of the database, here we paka name nowsms

# And enter the sql code to create this table with the name of the inbox column consists of 2 ps and the contents

view plain print

1.
2. CREATE TABLE `inbox` (
3. `id` int (5) NOT NULL auto_increment,
4. `content` text NOT NULL,

5. PRIMARY KEY ( `id`)
6. ) Engine = MyISAM default charset = UTF8 AUTO_INCREMENT = 4;

CREATE TABLE `inbox` ( `id` int (5) NOT NULL auto_increment, `content` text NOT NULL, PRIMARY KEY ( `id`)) engine = MyISAM default charset = UTF8 AUTO_INCREMENT = 4;
# Following data structures …. (sorry bgt simple to facilitate the understanding of …)

Step two is to create a PHP script which include sms to MySQL database

1. open windows explorer to create a new directory with the name nowsms
2. What’s the author URL is C: AppServwwwnowsms

3. and create a index.php file with the name of the contents as follows:
view plain print
1.
2nd / / Database settings
3. $ DB_Host = “localhost”;
4. $ db_user = “root”;
5. $ db_pass = “sipit”;
6. $ db_name = “nowsms”;
7.
8. / / Connect to the database
9. $ link = mysql_pconnect ($ DB_Host, $ db_user, $ db_pass) or die ( “I can connect”);
10. mysql_select_db ($ db_name) or die ( “I can select the database”);
11.
12. / / Trim inputan. This also eliminates the problem does not
13. $ content = trim ($ content);
14.
15. / / insert to table inbox
16. $ sql = “INSERT INTO inbox
17. SET id =”,
18. content = ‘$ content’ “;
19. $ query = mysql_query ($ sql);
20. ?>

4. Complete (do not forget extensinya is *. php so if the notepad select save as typenya as all the files, and give the name of index.php)

step three is to set the settings in sms now

1. Select 2-Way in the top menu
2nd Check process received sms message
3. The contents of SMS command prefix with an asterisk * or Asterix or (*_*;)
mean all sms will be processed. if you want to command a certain prefix please fill AFI for example (so that SMS will be processed with the AFI berawalan only)
4. contents Receive Phone Number (s) as you fill in the SMSC connection earlier. (IM3 number in the GSM Modem / K750i)
5. Execute the command with the contents: http://localhost/nowsms/index.php?isi = @ @ @ @ FULLSMS
6. click ADD
7. Click Apply
8. Done

21 Responses to Free SMS gateway

  1. Arjay Orcasitas July 2, 2009 at 9:28 am #

    This is a nice project! My question is, what subscription did you use in nowSMS? did you use the trial version?

  2. SarMasT July 25, 2009 at 2:40 pm #

    How can we use or apply it on a website??? or if there is some other way which u can guide me to use a free sms service on a website so that ppl or users wold be able to send sms via our website.???

  3. Sedy September 4, 2009 at 4:17 pm #

    This is nice info for setting up free SMS gateway.

  4. Faraz Ahmed October 4, 2009 at 10:42 pm #

    If anyone in Pakistan wants to offer free sms service for his / her website can contact me on 923452203922, Iam running 24 hours online server for providing sms service.

  5. Alkaabey December 9, 2009 at 2:52 am #

    Hi there,
    I’d like to thank you for sharing such useful information because it helped me so much in avoiding much longer and more difficult procedures such using linux with KANEL sms gateway which is pretty difficult to configure.
    Now i’m wondering if you can help with making this gateway do auto reply(to the sender) with particular information from the database made by mysql .
    i’m really looking forward for an answer and i would really grateful.
    Best regards
    Alkaabey

  6. Ash February 10, 2010 at 3:56 pm #

    I want to use my own PC as a SMS Gateway connecting a GSM Nokia mobile phone to run few VAS content provider. I want to use shared ShortCode as well. Please help me out how I can do it.
    Best regards,
    Ash@talk2home.co.uk

  7. Redz85 February 21, 2010 at 3:47 pm #

    Hi . thnx for this infos
    but there s' something missing, you mentioned that we ll need 2 mobile phones, one as GSM modem and the other is to send SMS. you mentioned the GSM modem but u didnt mention that mobile which will send sms in the tutorial. and when i tried all this, it didnt work. so what im missing is that other mobile, where to use it and how ? :S 

  8. BrollyLSSJ March 3, 2010 at 2:01 am #

    Nice Tutorial, but I got one question though. Did you mobile phone had a sim card or were they without a sim card? I do not want to face the problem, that the mobile phone sends sms with the sim card (even though it isn't active anymore) and getting carrier costs for it.

  9. Senthil May 21, 2010 at 6:04 am #

    Nice , Thanks for giving such a good explanation.
    I would like to know how much sms can be send at a time? is there any way to increase it?
     

  10. Senthil May 26, 2010 at 9:42 am #

    is there anyway to connect 8 sims at a time?

  11. andrew August 2, 2010 at 8:16 am #

    I would like some help with connecting a Sony Ericsson K750i phone with a PHP and MYSQL application via serial cable.I really need the code I am doing this for my academic project

  12. hi August 6, 2010 at 9:14 am #

    hello
    i just installed nowsms as trial version.
    using this http://localhost:8800/ i can send sms to my other phone.
    using another phone, i can also receive the text messages using the 'view' in 2-way.
    Did I missed something in the config of php and mysql, it seems that the text reveiced was not inserted in the database.
    How do I customize PHP to send text.
    by the way my modem is ZTE MF627 and it work fine.

  13. Sagir December 22, 2010 at 11:30 am #

    i just installed nowsms as trial version.
    using this http://localhost:8800/ i can send sms to my other phone but it’s deducting carrier costs from the available balance of my sim card.
    where it is free?

  14. admin December 22, 2010 at 2:51 pm #

    Sagir, my friend this application is free which you can use to send/receive SMS using web page. However your balance will be according to your operator package :)

  15. jojo December 27, 2010 at 3:53 pm #

    sir can u help me pls.. i need a php script for my online job application.. where : after the user has successfully registered he will automatically receive sms on his phone.. is that possible..? if yes can u pls help me.. tnx

  16. Dev Kumar Singh January 18, 2011 at 9:08 am #

    Hi Sir,
    I am Dev Kumar Singh from Odissa, Sir I want to setting my Mobile Phone Automatically Send SMS by my home used mobile phone where I am?
    means I am going other pleace at work i have no time to receive my phone directly send sms to my home phone to where i am?
    thanking you
    Dev Kumar

  17. hitesh February 10, 2011 at 12:42 pm #

    Hey nice post for setting up sms gateway..
    I am doing a project(Website) which has this application…i want to set up in such a manner that if suppose someones sends HOSP to my phone it shud search in the database for hospitals and the send the message containing list of hospitals …
    So is it possible by usin the above post…???

  18. rojor April 24, 2011 at 7:00 am #

    hi
    there’s error makes from index.php in www directory. it says $content not defined! does NowSMS gateway post this variable? gateway post empty array? can you help me?

  19. placidius September 19, 2011 at 4:57 pm #

    Thank u sir for this useful info!
    Im doing my final project and i came across with this useful info. i have finished building my project with php-web based (it is a website in my pc), and it is able to store, and display students info.
    now i want the students access their results via my gsm modem(they send a key and it replies them automatically)
    Is this possible?
    please help me! thanx in advance

  20. srividhya March 5, 2012 at 11:19 am #

    how to configure the nowsms lite and wamp server…. b’coz I could not enable the “Local PHP Processing” in nowsms….I had Wamp server in my system…. it has php within it…. then what is the problem… how to enable that one?

  21. sajid May 31, 2013 at 4:02 am #

    Hello Frindes.
    Muj sms Software ya sms wapsite chaia.
    jis ma sender id 03333323287 ho ya kio be number.
    or sms ko 111. 333. 345. 321. ya kise be 3 dght k umber pa sms jia.
    kisa k pass agir ha to rabita kira.
    03333323287

Leave a Reply