Asp.Net News
Free Tech Magazines
Asp.Net Web Hosting
Suggest Us
Link to Us
Feeds Subscription
Questions & Answers
Tips & Tricks
 Sending sms on phones in c# web application
Posted by Nidhi Bisht on  3/14/2009 6:07:55 AM Category: Asp.Net 2.0
Add to my favorites
Email to friend

can any one tell me how to send sms on phone in c# using web application

Post Your Reply Post New Question

 Viewer's Reply
You need some Third Party Gateway for this.
Answered By Moderator1 on 3/19/2009 3:00:47 AM

You need to connect some sms gateway to do this. Your sms gateway will provide some dll or web services access to you. They also will provide you the username and password, so that you can send sms with some security. I found one url, which i think the most easiest. Please check the url below and keep on update this page as it will help others.

I tried this component
Answered By Moderator1 on 3/19/2009 3:08:47 AM
Hi, I tried this component in Asp.Net with C#.

Its very simple and they provide free 5 sms to try from your application.

Download the component from the below url,

Then register to this Service to get Free Credit. Initially they give your 5 SMS for Free.

Then by Add the dll to bin directory of your web project and do the below code,

using IntelliSoftware;

IntelliSMS sms = new IntelliSMS();
sms.Username = "xxxxx";
sms.Password = "xxxxxx";
sms.SendMsg("+1029938383", "Test SMS", "+22345645686");

Good luck..
sending of email dynamicaly
Answered By harekrushna on 5/21/2010 12:53:32 PM
using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Web.Mail;
using System.IO;

public partial class _Default : System.Web.UI.Page
protected void Page_Load(object sender, EventArgs e)

protected void sub_Click(object sender, EventArgs e)
string result="";
StreamReader sr=new StreamReader("HTMLPage.htm");
sr = File.OpenText("htmlpage.htm");
result = sr.ReadToEnd();
catch(Exception ex)

string MessageBody=result.Replace("<YourFriendName>", txtFriendName.Text);
MessageBody=MessageBody.Replace("<YourName>", txtMyName.Text);
MessageBody= MessageBody.Replace("<DateYouSendThisEmail>", DateTime.Today.ToString());
MailMessage mail = new MailMessage();
mail.Body = MessageBody;
mail.BodyFormat = MailFormat.Html;
mail.From ="";
mail.To = "";
mail.Subject = "Dynamic Content Email From "+ txtMyName.Text;
SmtpMail.SmtpServer = "localhost";


HTMLPage.htm like this

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "">
<html xmlns="" >
<title>Untitled Page</title>

Thank you for sending this email. See you soon.

Good Bye,



but it does not work
Post Your Reply If you still have problem, post it again under this reply for better response.

Sponsored by
Easing the Migration to Microsoft SQL Server 2005
Integrating Silverlight 4 with SharePoint 2010 - Free 42 Page Sample Chapter
Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview!