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

    Sending SMS programatically

    How can we send sms to a mobile number programatically in a button click.Like sending automatic mail from our application i have to send sms automatically from my application
  • #648135
    There are many service providers who provide this service.Try using www.smsgupshup.com.
    Regards,
    Programmer

    http://www.dotnetutorial.com/interview-questions.aspx?catid=1

  • #648136
    hi

    it require a sms gateway to send bulk sms from application ...

    Regards
    Sagar pawar
    Software developer

  • #648137
    Yes,But how to code to send sms programaticall.I think we have to use System.Net.Mail namespace to send sms.Can u plz give me the complete code for this

  • #648138
    Hi,

    You can check the code for sending sms from below links:



    http://www.codeproject.com/KB/cpp/SendSmsThroughWS.aspx

    http://www.codeproject.com/KB/IP/Sending_SMS_using_Net.aspx


    With Regards
    Kushal

  • #648139
    Hello,


    required either of the following things:

    1. Web service: Third party web services that are free
    2. GSM Modem
    3. SMS Gateway


    refer this site:
    How to Send SMS Messages from C#

    http://www.codeproject.com/KB/database/SMS_message_from_SQL.aspx

    Thanks
    Rajesh

    Regards
    Mr.Rajesh
    Software Engg.

  • #648152
    The link below explains how to send sms,

    http://dotnetutorial.com/display-code.aspx?id=8

    Regards,
    Programmer

    http://www.dotnetutorial.com/interview-questions.aspx?catid=1

  • #648161
    I have a sample code that used a web service. You just need to check the service provider who provide this facility.


    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

  • #648162
    SmsTest obj of what?how to add web service in my project

  • #648184
    Hi,
    I had already written article in DNS for this you can refer and get back to me if you have any queries.

    http://www.dotnetspider.com/resources/23568-Connecting-sending-message-through-GSM-modem.aspx

    All is well.
    Thanks,
    Dharma
    Editor,Mentor,MVM
    Try and fail but don't fail and try

  • #648433
    Hai Soft,

    There is no classes or namespaces in the .net framework which can be used to send message on the mobile phone.
    so you need to use some API's either the messaging API or some service as API which will be sued to send message to mobile phones.

    There are many service provider who provides the service to send message to mobile-phones as:


    http://www.codeproject.com/KB/cpp/SendSmsThroughWS.aspx
    http://www.codeproject.com/KB/IP/Sending_SMS_using_Net.aspx
    http://enterprise.smsgupshup.com/GatewayAPI

    Hope it will help.

    Regards,
    Pawan Awasthi(DNS MVM)
    +91 8123489140 (whatsApp), +60 14365 1476(Malaysia)
    pawansoftit@gmail.com


  • This thread is locked for new responses. Please post your comments and questions as a separate thread.
    If required, refer to the URL of this page in your new post.