Results 1 to 2 of 2

Thread: How to send SMS using asp.net

  1. #1
    Cael Anglian is offline Member
    Join Date
    Apr 2009
    Posts
    99
    Rep Power
    4

    Default How to send SMS using asp.net

    Hi. I am working on one live project where I use asp.net as front end and SQL as back end. I want send a message using asp.net .it is possible??If possible then send me a proper code for that. Any help would be highly appreciated.

  2. #2
    Bratton Clovelly is offline Senior Member
    Join Date
    Apr 2009
    Posts
    111
    Rep Power
    4

    Default

    Try out this code, when you run this program you can send a message:
    Code:
    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;
    }

Similar Threads

  1. How to send e-mail through JSP
    By Erick Ballmer in forum Programming
    Replies: 3
    Last Post: 07-04-2010, 06:06 AM
  2. Send mail in ASP.net
    By MartinWilson in forum General Internet Terms
    Replies: 2
    Last Post: 06-22-2010, 01:45 PM
  3. Send mail using VB.net
    By RogersNguyen in forum General Internet Terms
    Replies: 1
    Last Post: 05-07-2010, 01:52 PM
  4. Send mail in PHP
    By Davisricky in forum Programming
    Replies: 2
    Last Post: 04-26-2010, 01:29 PM
  5. Fax Can't Send
    By andressa143 in forum Windows XP
    Replies: 2
    Last Post: 04-25-2009, 01:07 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
SEO by SubmitEdge

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48