Click here to Skip to main content
15,895,011 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I want to send sms to mobiles in asp.net application. I have registered on site2SMS site. I have written the below code to establish this. But it is generating an error like

" The remote server returned an error: (403) Forbidden.webclient"


the code is:

using ASPSnippets.SmsAPI;

C#
 protected void btnSend_Click(object sender, EventArgs e)
      {
          SMS.APIType = SMSGateway.Site2SMS;
          SMS.MashapeKey = "<Mashape API Key>";
          SMS.Username = txtNumber.Text.Trim();
          SMS.Password = txtPassword.Text.Trim();
          if (txtRecepientNumber.Text.Trim().IndexOf(",") == -1)
          {
              //Single SMS
        ///      SMS.SendSms(txtRecepientNumber.Text.Trim(), txtMessage.Text.Trim());
              SMS.SendSms(txtRecepientNumber.Text, txtMessage.Text);
          }

}








Pls give me a reply.
Posted

Sending Sms Using Asp.net[^]

check this out..
 
Share this answer
 
Comments
KALYANI BIBIN 25-Jul-14 3:39am    
Its showing Ozeki NG Sms Gateway not working
Please try the following link
click here[^]
 
Share this answer
 
Please get the Mashape key from www.mashape.com website
 
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