Click here to Skip to main content
15,887,836 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
i tried many code from code project and from others but any one cant work
Posted

 
Share this answer
 
Comments
Bama Boy 7-Sep-13 2:37am    
icant signup in thundersms.com bcouse i cant get account details on registered mobile.
and Ozeki NG SMS Gateway Server is not running!
I Have not Provided the UserName And sender ID b'coz u have to purchase sms from sms Seller then u will get this thing and authorized number is the number to get report of sms send

take all the mobile no u want to send sms in datatable as dt
C#
for(int i=0;i<dt.rows.count;i++)>
{
string url1 = "http://api.mVaayoo.com/mvaayooapi/MessageCompose?user=User_Name&senderID=ID SMS&receipientno=" + dt.Rows[i][0].ToString() + "&msgtxt='"+TextBoxName.Text+"' API&state=4";

                //string strUrl = "http://api.mVaayoo.com/mvaayooapi/MessageCompose?user=UserName&senderID=ID SMS&receipientno=AuthorizedNumber&msgtxt=This is a test from mVaayoo API&state=4";
                WebRequest request = HttpWebRequest.Create(url1);
                HttpWebResponse response = (HttpWebResponse)request.GetResponse();
                Stream s = (Stream)response.GetResponseStream();
                StreamReader readStream = new StreamReader(s);
                string dataString = readStream.ReadToEnd();
                response.Close();
                s.Close();
                readStream.Close();
}



this works in my asp.net with c# web application hope ur query is solve
 
Share this answer
 
v4

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900