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

    Get a message to phone after registration

    i have created a registration page in that I kept mobile number field and email field so my question is after completion of registration i need to get message to mobile as well as email
  • #765414
    So basically you need to send sms using asp.net right , there are many free sms provider/gateway exist you can use any one of them
    Way2sms, FullOnSMS, 160by2, Site2SMS, IndyaRocks.com SMSAbc.com, Ultoo.com, SmsSpark.com SMSFI.com Freesms8, Sms440, BhokaliSMS
    see below code snippet uses 'FullOnSMS' provider
    public void send()
    {
    HttpWebRequest myReq = (HttpWebRequest)WebRequest.Create("http://ubaid.tk/sms/sms.aspx?uid=" + uid + "&pwd=" + password + "&msg=" + message + "&phone=" + no + "&provider=fullonsms");
    HttpWebResponse myResp = (HttpWebResponse)myReq.GetResponse();
    System.IO.StreamReader respStreamReader = new System.IO.StreamReader(myResp.GetResponseStream());
    string responseString = respStreamReader.ReadToEnd();
    respStreamReader.Close();
    myResp.Close();
    }
    check below snippet for more details
    http://www.c-sharpcorner.com/blogs/send-sms-from-asp-net-using-full-on-sms1

    Thanks
    Koolprasd2003
    Editor, DotNetSpider MVM
    Microsoft MVP 2014 [ASP.NET/IIS]

  • #765488
    There are many websites that allow sending free SMS to mobile (cell) numbers like Way2sms, FullOnSMS, 160by2, Site2SMS, IndyaRocks.com SMSAbc.com, Ultoo.com, SmsSpark.com SMSFI.com Freesms8, Sms440, BhokaliSMS, etc.

    Below is the sample code..
    SMS.APIType = SMSGateway.Site2SMS;
    SMS.MashapeKey = "<Mashape API Key>";
    SMS.Username = txtNumber.Text.Trim();
    SMS.Password = txtPassword.Text.Trim();
    if (txtRecipientNumber.Text.Trim().IndexOf(",") == -1)
    {
    //Single SMS
    SMS.SendSms(txtRecipientNumber.Text.Trim(), txtMessage.Text.Trim());
    }
    else
    {
    //Multiple SMS
    List<string> numbers = txtRecipientNumber.Text.Trim().Split(',').ToList();
    SMS.SendSms(numbers, txtMessage.Text.Trim());
    }


Sign In to post your comments