Saturday, April 17, 2010

Sending SMS from asp.net through way2sms...

C#.net:




Step 1: Add Web Reference : 
        http://www.spiritssoft.com/webservice/sendway2sms.asmx


           //if your classname is classname1 and servicereference is ServiceReference1


Step 2: Add This "using classname1.ServiceReference1;"


Step 3:

            SendWay2SmsSoapClient client = new SendWay2SmsSoapClient();
            string strResult = client.sendSmsSpiritsSoft("username", "password",                   "number to send","message");

No comments:

Post a Comment