Click here to Skip to main content
15,891,777 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
hello,
I working on E-commerce website. I want to send a message on customer's mobile after order completion.
I have used many solutions but not succeed. Please tell me a best solution.
Posted
Updated 2-Jan-13 23:07pm
v2

 
Share this answer
 
Hai, i give a suggestion..

here u add uid=(Your mobile number)
pwd=(way2sms pwd)
msg=(Your Text) in this coding i used "Testing of my project"
And also you can add namespaces
"
using System.Net.Mail;<br />
using System.IO.Ports;
"
try this it will surely helps you...
Have a happy day!!
C#
string Address = "http://ubaid.tk/sms/sms.aspx?uid=9876543210&pwd=sample &msg=Testing of my project &phone=" + TextBox3.Text + "&provider=way2sms";
            HttpWebRequest request = (HttpWebRequest)WebRequest.Create(Address);
            WebResponse response = null;
            StreamReader reader = null;
            response = request.GetResponse();
reader = new StreamReader(response.GetResponseStream(), Encoding.UTF8);
            string result = reader.ReadToEnd();
            reader.Close();
            if (result == "1")
            {
                Label8.Text = "Mail and Sms has Sent ";
                          
                          (or)
    
                Response.Write("SMS sent successfully");
               
            }
 
Share this answer
 
v3
Comments
Member 9460399 4-Oct-13 1:51am    
Here any header files are used?

i use that code and sms send. but that number not received. i do in asp.net with vb.
i import the header file as import syste,.web.ui.mobilecontrol
that package not import in my program. what can i do.. any body know answer please mail to me frndz....
mail id: aravindraj.raj144@gmail.com
Member 10337557 18-Oct-13 8:59am    
Compiler Error Message: CS0246: The type or namespace name 'HttpWebRequest' could not be found (are you missing a using directive or an assembly reference?)
1) You can send sms via a SMS service provider which provides API to send sms from your code and takes some charges.

2) You can send sms via "GSM MODEM" in which you can insert YOUR PHONE SIM CARD and it will send sms via your sim card.
 
Share this answer
 
contact any bulk sms provider... (search on google you will find many bulk sms providers)

purchase an account.
they will provide you API
follow it...

Happy Coding!
:)
 
Share this answer
 
v2

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