AspdotnetCodes.com
Search
Articles
Books
Resources
Asp.Net News
Downloads
Free Tech Magazines
Asp.Net Web Hosting
Archives
Softwares
Newsletter
Suggest Us
Link to Us
Feeds Subscription
Articles
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
hi

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
Hi,

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.

http://www.intellisoftware.co.uk/

Thanks.
 
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,

http://www.intellisoftware.co.uk/sms-solutions/downloads/

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="";
try
{
StreamReader sr=new StreamReader("HTMLPage.htm");
sr = File.OpenText("htmlpage.htm");
result = sr.ReadToEnd();
sr.Close();
}
catch(Exception ex)
{
Response.Write(ex.Message);
return;
}


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 ="parida.harekrushna@gmail.com";
mail.To = "rainy.1000@gmail.com";
mail.Subject = "Dynamic Content Email From "+ txtMyName.Text;
SmtpMail.SmtpServer = "localhost";
SmtpMail.Send(mail);
}

}



HTMLPage.htm like this

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
<title>Untitled Page</title>
</head>
<body>
<yourfriendname>

Thank you for sending this email. See you soon.

Good Bye,

<yourname>
<dateyousendthisemail>

</body>
</html>

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

 
Sponsored by
Oracle Magazine
Many .NET teams are underperforming, is yours?
Building a Web Application Security Program