PHP Classes

Thanx for the post

Recommend this page to a friend!

      Gammu SMS Inject  >  All threads  >  Thanx for the post  >  (Un) Subscribe thread alerts  
Subject:Thanx for the post
Summary:SMS Inject
Messages:24
Author:john herman
Date:2011-03-16 13:52:40
Update:2012-12-14 02:45:52
 
  1 - 10   11 - 20   21 - 24  

  1. Thanx for the post   Reply   Report abuse  
Picture of john herman john herman - 2011-03-16 13:52:41
How 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

  2. Re: Thanx for the post   Reply   Report abuse  
Picture of ikhsan ikhsan - 2011-03-18 02:03:45 - In reply to message 1 from john herman
hi 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

  3. Re: Thanx for the post   Reply   Report abuse  
Picture of john herman john herman - 2011-03-18 07:04:09 - In reply to message 2 from ikhsan
Thanx 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

  4. Re: Thanx for the post   Reply   Report abuse  
Picture of ikhsan ikhsan - 2011-03-18 08:09:00 - In reply to message 3 from john herman
you are welcome john, don't be hesitate to ask me again


  5. Re: Thanx for the post   Reply   Report abuse  
Picture of alexandro senrobel alexandro senrobel - 2011-09-19 17:50:35 - In reply to message 1 from john herman
hello,

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 ;)

  6. Re: Thanx for the post   Reply   Report abuse  
Picture of ikhsan ikhsan - 2011-09-23 04:31:24 - In reply to message 5 from alexandro senrobel
this 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

  7. Re: Thanx for the post   Reply   Report abuse  
Picture of ikhsan ikhsan - 2011-09-23 04:39:16 - In reply to message 6 from ikhsan
what 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);
}

  8. Re: Thanx for the post   Reply   Report abuse  
Picture of alexandro senrobel alexandro senrobel - 2011-09-25 15:45:03 - In reply to message 6 from ikhsan
wow 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).

  9. Re: Thanx for the post   Reply   Report abuse  
Picture of ikhsan ikhsan - 2011-09-26 03:03:55 - In reply to message 8 from alexandro senrobel
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).

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]

  10. Re: Thanx for the post   Reply   Report abuse  
Picture of alexandro senrobel alexandro senrobel - 2011-09-27 06:34:39 - In reply to message 9 from ikhsan
hello,

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>

 
  1 - 10   11 - 20   21 - 24