Jump to content

Send SMS using OZEKI to multiple recepients


Recommended Posts

I have a HTML form with a drop down list, which has my entire buyers list populated from the database. In addition to that, I have an option on the top of the drop down such as :

<select name="sms_buyer">
<option value="alll">ALL</option>
require_once '../model/notifications.php';
@$result2= Notifications::getAllBuyers();
<option value="<?php echo $value2['buyer_code']; ?>">
<?php echo $value2['buyer_name'] ?>
<?php } ?>

In the Controller I have the following code segment:

function sendNotificationSMS(){

$sender='MY CLIENT';

$obj=new Notifications();

require_once '../model/notifications.php';
$obj=new Notifications();


foreach ($rec as $recepient) {

$message.=' Thank You.';


If I type print_r($url), the output which I am intending is not appearing... Sending SMS to a single recepient is fine. The problem is sending sms to multiple recepients.

Any help is appreciated. Thanks.


Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.