Jump to content

send sms form table (database)


ufone

Recommended Posts

Hi all,
: I have php script like this which use to send sms. Now i want to send sms from outbox table. not 'NumberCsv  in this out box table message is already saved. just use to send message.

in outbox field sno,message,mobile,msg_status,mobile  
I have no idea ho to retrieve records from table... phone number and send message.
Can any one help me.
thanks a lot in advance.
<?php
ini_set("soap.wsdl_cache_enabled", 0);
$url = 'http://cbs.zong.com.pk/ReachCWSv2/CorporateSmsV2.svc?wsdl';
$client = new SoapClient($url, array("trace" => 1, "exception" => 0));

$resultBulkSMS = $client->BulkSmsv2(
array('objBulkSms' =>
array( 'LoginId'=> '', //here type your account name
'LoginPassword'=>'', //here type your password
'Mask'=>'KPS', //here set allowed mask against your account or you will get invalid mask
'Message'=>'Happy',
'UniCode'=>'0',
'CampaignName'=>uniqid(), // Any random name or type uniqid() to generate random number, you can also specify campaign name here if want to send no to any existing campaign, numberCSV parameter will be ignored
'CampaignDate'=>'5/02/2022 04:00:00 pm', // data from where sms will start sending, if not sure type current date in m/d/y hh:mm:ss tt format.
'ShortCodePrefered'=>'n',
'NumberCsv'=>'phone number'
)));
echo "<pre>";
echo "<br>REQUEST:\n" . htmlentities($client->__getLastRequest()) . "\n";
print_r($resultBulkSMS);
?>

Link to comment
Share on other sites

Ok - perhaps you now realize that your post is very difficult to understand.  And that code - please don't do that again.

How about you just write down what you are trying to do and leave out the "code" part.  Just use English and tell us what you want to do  and why it is being hard to do.

And when you do finally post code on this forum, use the <> icon above your post to place the code into its own window and post REAL code, not a print or an 'image' so that we can tinker with it ourselves while trying to help you.

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.

Guest
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.