Friday, May 24, 2013

send sms from website in php


 Send message from your site to any one mobile , simply use this script and do it .Register in mvaayoo.com and get the username and password. Free account only get 20 messages.

$ch = curl_init();
$user="yourmail@gmail.com:yourpassword";
$receipientno="919849558211";
$senderID="mVaayoo";
$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);

special thanks to mvaayoo.com . cheers friends :)

3 comments:

  1. Hi
    This is Very useful for us.
    Many thanks to phpshiner.

    ReplyDelete
  2. Thanks for sharing this blog. Our sample codes API scripts in PHP is very reliable, powerful and easy to integrate into the software. We also provide a detailed document of bulk SMS API PHP to send bulk SMS in a minute of a time.

    ReplyDelete