Get Even More Visitors To Your Blog, Upgrade To A Business Listing >>

Send Free SMS using ASP.Net C#

Tags | send SMS using asp net c# code, sending SMS using asp.net (c#) through http, how to Send SMS through asp.net using c# to mobile no, send free SMS using asp.net c#, send free SMS using asp.net c# mvaayoo SMS API, send SMS to mobile using asp.net c#

  • Send Email with Attachment in ASP.Net using C#

How to send free SMS from ASP.Net application to Mobile

This article demonstrates, how to send free SMS using asp.net c# mvaayoo SMS API. Find the send SMS using asp net c# code below:-

using System;
using System.IO;
using System.Net;

public partial class _Default : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        try
        {
            string strUrl = "http://api.mVaayoo.com/mvaayooapi/MessageCompose?user=yourEmailId:yourPassword&senderID=TEST SMS&receipientno=800000000&msgtxt=This is a test from mVaayoo API&state=4";
            WebRequest request = HttpWebRequest.Create(strUrl);
            HttpWebResponse response = (HttpWebResponse)request.GetResponse();
            Stream s = (Stream)response.GetResponseStream();
            StreamReader readStream = new StreamReader(s);
            string dataString = readStream.ReadToEnd();
            response.Close();
            s.Close();
            readStream.Close();
        }
        catch (Exception ex)
        {
            Response.Write(ex.ToString());
        }
    }
}

Download Source Code

Note: You need to register on https://mvaayoo.com. In mvaayoo, they provide the API code for ASP.Net, ASP, VB, and PHP too. You need to substitute the username password and sender id in the respective places in the URL. You need to also specify the mobile number too in the URL. If you want to send the SMS to multiple numbers then you need to provide those numbers in comma-separated format.

Did you find this post useful? I hope you liked this article. Please share with me your valuable suggestions and feedback.

The post Send Free SMS using ASP.Net C# appeared first on Dot Net Tutorial, C# Tutorial, Google Maps API JavaScript, Dot Net Tricks.



This post first appeared on Asp Dot Net Tricks And Tips, Dot Net Coding Tips, Google Maps API Developer, please read the originial post: here

Share the post

Send Free SMS using ASP.Net C#

×

Subscribe to Asp Dot Net Tricks And Tips, Dot Net Coding Tips, Google Maps Api Developer

Get updates delivered right to your inbox!

Thank you for your subscription

×