Advertisement
Guest User

Untitled

a guest
Aug 24th, 2016
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.55 KB | None | 0 0
  1. <?php
  2. $ch = curl_init();
  3. $user="anasanshu68@gmail.com:4991C8C2C@mV";
  4. $receipientno="9406504180";
  5. $senderID="TEST SMS";
  6. $msgtxt="this is test message , test";
  7. curl_setopt($ch,CURLOPT_URL, "http://api.mVaayoo.com/mvaayooapi/MessageCompose");
  8. curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  9. curl_setopt($ch, CURLOPT_POST, 1);
  10. curl_setopt($ch, CURLOPT_POSTFIELDS, "user=$user&senderID=$senderID&receipientno=$receipientno&msgtxt=$msgtxt");
  11. $buffer = curl_exec($ch);
  12. if(empty ($buffer))
  13. { echo " buffer is empty "; }
  14. else
  15. { echo $buffer; }
  16. curl_close($ch);
  17. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement