Click here to Skip to main content
15,886,689 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Exception while sending sms throgh mashup.com api with site2sms username,password,.Mashupkey everything is right but exception occuring
C#
<pre lang="text">

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Text;
using System.Net;
using System.IO;
using ASPSnippets.SmsAPI;

protected void Button_SendSms_Click(object sender, EventArgs e)
{
SMS.APIType = SMSGateway.Site2SMS;
SMS.MashapeKey = "Mashupkey";
SMS.Username = TextBox_UserName.Text.Trim();
SMS.Password = TextBox_Password.Text.Trim();
if (TextBox_SendTo.Text.Trim().IndexOf(",") == -1)
{
//Single SMS
SMS.SendSms(TextBox_ReceiptNumber.Text.Trim(),TextBox_Message.Text.Trim());
}
else
{
////Multiple SMS
List<string> numbers = TextBox_ReceiptNumber.Trim().Split(',').ToList();
SMS.SendSms(numbers, TextBox_Message.Text.Trim());
}
}

build Successfully After runing and clicking on button following error Occurred 
 popup on //single sms 
An exception of type 'System.Exception' occurred in ASPSnippets.SmsAPI.dll but was not handled in user code

Additional information: {"response":"This API is Deprecated due to take down request from site2sms."}
Posted

1 solution

The error is self-explanatory? The API is no longer valid, contact whoever supplies the service for an alternative.
 
Share this answer
 
Comments
Member 10234718 19-Nov-15 12:11pm    
solved
283 18-Dec-15 5:14am    
How did you solve the please share with us.

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