|  | 
  john herman - 2011-03-16 13:52:41How does this work exactly.. It successfully inject sms into the database table i created.. How do i make it send SMS To this mobile numbers
 Thanx very much
 I will appreciate the reply
  ikhsan - 2011-03-18 02:03:45 - In reply to message 1 from john hermanhi john, it's inject sms to the gammu database backend (in this case MySQL), then gammu service will scan the outbox table and send it via selected device
 make sure you have gammu service installed and properly configured
 
 CMIIW
  john herman - 2011-03-18 07:04:09 - In reply to message 2 from ikhsanThanx so much ikhsan.. Now i know i have to find out about Gammu..I have never done this before though. Any assistance will be appreciated
  ikhsan - 2011-03-18 08:09:00 - In reply to message 3 from john hermanyou are welcome john, don't be hesitate to ask me again
 
  alexandro senrobel - 2011-09-19 17:50:35 - In reply to message 1 from john hermanhello,
 i have a little problem with my old sms script (selfcoded).
 
 can you post a LIIIIIITLE html & php script to insert sms with your sms.class - single long sms and multipart sms with a html / php form ;)
 
 big thanks ;)
 
  ikhsan - 2011-09-23 04:31:24 - In reply to message 5 from alexandro senrobelthis is simple html form
 <html>
 <head></head>
 <body>
 <form action="send_sms.php" method="post">
 <input type="text" name="dest" /><br />
 <textarea name="msg"></textarea><br />
 <input type="submit" value="send" />
 </form>
 </body>
 </html>
 
 this is send_sms.php, as defined in form action attribute
 
 <?php
 include 'sms_inject.class.php';
 $mysql_resource = mysql_connect('your_server','user','password');
 mysql_select_db('your_database',$mysql_resource);
 
 $smsd=new sms_inject($mysql_resource);
 $dest=$_POST['dest'];
 $msg =$_POST['msg'];
 $smsd->send_sms($msg,$dest);
 
 ?>
 
 that's all, make sure smsd service is running
 this class automatically detect if it single sms or multipart sms
  ikhsan - 2011-09-23 04:39:16 - In reply to message 6 from ikhsanwhat i mean about 'multipart' here is long sms, more than 160 char, splitted into sparate part of sms, but it will concatenated as single long sms when user receive it
 if you want to send long sms in sparate part, you can use str_split
 
 <?
 /*....
 
 .....*/
 $msg=str_split($_POST['msg'],160);
 foreach($msg as $msg_part){
 $smsd->send_sms($msg_part,$dest);
 }
  alexandro senrobel - 2011-09-25 15:45:03 - In reply to message 6 from ikhsanwow big thanks ;)
 i will send simple sms (160 chars) and 4 sms in "one sms".
 
 I have a question - i will send the sms to the number 123456 and to 456789 and 999999 -> i have 3 recievers can you add this to your script (the api ave the function).
  ikhsan - 2011-09-26 03:03:55 - In reply to message 8 from alexandro senrobelI have a question - i will send the sms to the number 123456 and to 456789 and 999999 -> i have 3 recievers can you add this to your script (the api ave the function).
 if you want to send same sms message to one or more recipient, just use mass_sms() method
 
 [code]
 <?php
 $receiver=array(123456,456789,999999);
 $message="hey, this is a broadcast message";
 
 //assume sms_inject class already instantiated as $smsd
 $smsd->mass_sms($message,$receiver);
 ?>
 [/code]
  alexandro senrobel - 2011-09-27 06:34:39 - In reply to message 9 from ikhsanhello,
 i have the class and sendmass but i have no right html / php form ..
 can you post a form with mass recievers ..
 
 its only for one reciever:
 <html>
 <head></head>
 <body>
 <form action="send_sms.php" method="post">
 <input type="text" name="dest" /><br />
 <textarea name="msg"></textarea><br />
 <input type="submit" value="send" />
 </form>
 </body>
 </html>
 |