Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $ch = curl_init();
- $user="anasanshu68@gmail.com:4991C8C2C@mV";
- $receipientno="9406504180";
- $senderID="TEST SMS";
- $msgtxt="this is test message , test";
- curl_setopt($ch,CURLOPT_URL, "http://api.mVaayoo.com/mvaayooapi/MessageCompose");
- curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
- curl_setopt($ch, CURLOPT_POST, 1);
- curl_setopt($ch, CURLOPT_POSTFIELDS, "user=$user&senderID=$senderID&receipientno=$receipientno&msgtxt=$msgtxt");
- $buffer = curl_exec($ch);
- if(empty ($buffer))
- { echo " buffer is empty "; }
- else
- { echo $buffer; }
- curl_close($ch);
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement