User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the ASP.NET section within the Web Development category of DaniWeb, a massive community of 426,470 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,272 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our ASP.NET advertiser: Lunarpages ASP Web Hosting
Views: 1189 | Replies: 1
Reply
Join Date: Jun 2007
Posts: 6
Reputation: hanusoftware is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
hanusoftware hanusoftware is offline Offline
Newbie Poster

TO SEND Text message or URL through Clickatell

  #1  
Jul 12th, 2007
WebClient wbcRingtone = new WebClient();

// Add a user agent header in case the requested URI contains a query.

// http://www.hanusoftware.com

wbcRingtone.Headers.Add("user-agent","Mozilla/4.0(compatible;MSIE 6.0;Windows NT 5.2; .NET CLR 1.0.3705");

wbcRingtone.QueryString.Add("user","xxxxxxxx");

wbcRingtone.QueryString.Add("password","xxxxxxxx");

wbcRingtone.QueryString.Add("api_id", "xxxxxxxxxx");

//wbcRingtone.QueryString.Add("msg_type", "SMS_NOKIA_RTTL");

wbcRingtone.QueryString.Add("to", cellNo);

////wbcRingtone.QueryString.Add("text", "Flintstone:d=4,o=5,b=200:g#,c#,8p,c#6,8a#,g#,c#,8p,g#,8f#,8f,8f,8f#,8g#,c#,d#,2f,2p,g#,c#,8p,c#6,8a#,g#,c#,8p,g#,8f#,8f,8f,8f#,8g#,c#,d#,2c#");

wbcRingtone.QueryString.Add("from", "xxxxxxxxx");

wbcRingtone.QueryString.Add("mms_subject", "xxxxxxxxx");

wbcRingtone.QueryString.Add("mms_class", "xxxxxx");

wbcRingtone.QueryString.Add("mms_expire", "xxxxxxx");

wbcRingtone.QueryString.Add("mms_from", "xxxxxxxxx");

wbcRingtone.QueryString.Add("mms_url", "http://www.some.com/folder/mms.mms");

//string baseURL = "http://api.clickatell.com/http/sendmsg";

string baseURL = "http://api.clickatell.com/mms/ind_push.php";

Stream data = wbcRingtone.OpenRead(baseURL);

StreamReader reader = new StreamReader(data);

string s = reader.ReadToEnd();

data.Close();

reader.Close();

string queryURL = GetQueryForMMS(s);

return queryURL;


Software Development India
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Aug 2007
Posts: 4
Reputation: willamike is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
willamike willamike is offline Offline
Newbie Poster

Re: TO SEND Text message or URL through Clickatell

  #2  
Mar 9th, 2008
By the way you can take a look at this:

Ozeki SMS sending and SMS receiving Gateway

This is standalone SMS gateway, that can be
installed into your PC and it simplifes most
of the tasks you want to do when you want
to create such a solution.
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

DaniWeb ASP.NET Marketplace
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes

Similar Threads
Other Threads in the ASP.NET Forum

All times are GMT -4. The time now is 3:55 pm.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC