Click here to Skip to main content
15,889,335 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Create a module that was send message to mobile in the website.
give me a code which was run in asp.net.
asp.net web site.
Posted
Comments
Do some research first. You can search the same in Google. You will find many results. Read them and try in your project. This is a Quick Question Answer forum, where we try to solve issues that programmers face while coding.

If you want to send a free one then this one is for you.

http://www.aspsnippets.com/Articles/How-to-send-free-SMS-from-ASPNet-application-to-Mobile.aspx[^]

And if you want to deliver paid sms then register yourself first to some sms portal and then you will get an url like this one.

http://000.000.000.000/API/WebSMS/Http/v1.0a/index.php?username=arkadeepde&password=******&sender=Arka&to=$mobile&message=$text&reqid=1&format={json|text}&route_id=7

Now you have to run the code with your values like

C#
string url = "http://000.000.000.000/API/WebSMS/Http/v1.0a/index.php?username=arkadeepde&password=******&sender=Arka&to=" + txtMobile.Text.Trim() + "&message=" + message + "&reqid=1&format={json|text}&route_id=7";
WebClient client = new WebClient();
string rtn = client.DownloadString(url);


in rtn get the json valu. from there you can show whether your msg has delivered or not.
 
Share this answer
 
v2
Comments
irfanansari 7-Mar-15 9:08am    
this is free API ?
Arkadeep De 7-Mar-15 9:33am    
you think this is a free api??I just give a original example..don't worry you can't use this...
You should consider going a little Google before posting the question in desperation.

Here is what I found that works, Sending Sms Using Asp.net[^]. Give that link a read, it has answers and links.
 
Share this answer
 

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