You must Sign In to post a response.
  • Category: Webservices

    How to send Free SMS using C# codeing or websewrvice

    how to send free SMS to mobile using web service or other application coding.
  • #744422
    Here is a sample code f you want you can change the web service as per your own requirement.


    private void Send_Click(
    object sender, System.EventArgs e)
    {
    try
    {
    SmsTest.net.webservicex.www.SendSMS smsIndia=
    new SmsTest.net.webservicex.www.SendSMS();
    SmsTest.com.webservicex.www.SendSMSWorld smsWorld =
    new SmsTest.com.webservicex.www.SendSMSWorld();
    if(rdoType.SelectedValue == "1")
    smsIndia.SendSMSToIndia(txtMobileNo.Text.Trim(),
    txtEmailId.Text.Trim(), txtMessage.Text);
    else
    smsWorld.sendSMS(txtEmailId.Text.Trim(),
    txtCountryCode.Text.Trim(), txtMobileNo.Text.Trim(),
    txtMessage.Text);
    lblMessage.Visible = true;
    lblMessage.Text="Message Send Succesfully";
    }
    catch(Exception ex)
    {
    lblMessage.Visible = true;
    lblMessage.Text="Error in Sending message"+ex.ToString();
    }
    }

    private void rdoType_SelectedIndexChanged(
    object sender, System.EventArgs e)
    {
    if(rdoType.SelectedValue =="1")
    txtCountryCode.Enabled = false;
    else
    txtCountryCode.Enabled = false;

    }

    Thanks & Regards
    Anil Kumar Pandey
    Microsoft MVP, DNS MVM

  • #758044
    Hi,

    You can use WebCLient for this Just Google it its a easy way to send in Sms in .net

    SRI RAMA PHANI BHUSHAN KAMBHAMPATI

  • #758045
    See excellent Article written here through WebClient.



    https://anindita9.wordpress.com/2011/12/19/sending-sms-from-asp-net-c-4-0-application-to-mobile-using-xml-api/

    SRI RAMA PHANI BHUSHAN KAMBHAMPATI


  • Sign In to post your comments