SMS Sender
Last Updated on Monday, 15 September 2008 07:58 Written by Dan Mansfield Tuesday, 09 September 2008 13:08
| Article Index |
|---|
| SMS Sender |
| PHP code |
| Final Notes |
| All Pages |
One of our clients approached us after installing a GSM SIP gateway for their trixbox installation regarding whether they could send out bulk text messages through it rather than paying a marketing company a lot of money to do so.
We had installed a Portech MV-372 Dual Port gateway, this takes two SIM cards and allows mobile calls to be routed through it from Trixbox. It also has a simple web page to allow single sms messages to be sent. The client was on a callplan that included unlimited texts.
The web page had a standard form POSTing to a cgi script for the processing.
Our solution consists of an html page and php script to collect the information into an array before looping through it and sending the data to the cgi script.
Assume the the IP address of the Trixbox is 192.168.0.230 and the IP address of the Portech is 192.168.0.231
The web pages on the trixbox are stored here: /var/www/html/
So we created a folder within called sms so that we
cd /var/www/html/
mkdir sms
cd sms
nano -w index.html
copy and paste in the text below:
SMS Blaster
192.168.0.230/sms/smsSendNow.php name=SendFrom>
| SMS Sender | |
|---|---|
| Dest Numbers | |
| Message | Text Here |


