Click here to Skip to main content
11,640,125 members (66,563 online)
Rate this: bad
good
Please Sign up or sign in to vote.
See more: ASP.NET
dears;
I have a website project working on, I want to connect it to Nokia PC suite and make the button from the website send an SMS using the PC suite , can I get your help?

thanx in advance..
Posted 20-Feb-13 8:07am
Comments
richcb at 20-Feb-13 14:48pm
   
You may get help if you attempt this yourself and then post the code you have tried once you are stuck. Also, I am sure you mean well and it is probably a culture difference, but addressing a professional forum with "dears" is not appropriate. You sound like a grandmother trying to gather the children for story time, ;). Joking aside, it is just a friendly comment to make you aware for future reference.
Member 9851009 at 20-Feb-13 15:20pm
   
thank you.. I appreciate that.
richcb at 20-Feb-13 15:29pm
   
You are welcome. Do a little research and find examples of what you want. Get started with those and if you get stuck come back here with the code and a question on your issue. This will be the best method for all parties.

1 solution

Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

Hi
I had the solution my self to whom intersted..

in webform1.aspx
<![CDATA[<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebForm1.aspx.cs" Inherits="SMS.WebForm1" %>]]>



<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
</head>
<body>
<form id="form1" runat="server">


Num    

SMS   




</form>
</body>
</html>


and then we use the code in Webform1.aspx.cs // if you are using C#:

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.IO.Ports;


namespace SMS
{

public partial class WebForm1 : System.Web.UI.Page
{
SerialPort SP = new SerialPort(); // create a SerialPort to access the Mobile as a modddem
protected void Page_Load(object sender, EventArgs e)
{

}

protected void Button1_Click(object sender, EventArgs e)
{

SP.PortName = "COM1"; // your mobile as modem, you can know it is COM? from Control Panel / Phones and Modems . then see your mobile what COM is it!
SP.BaudRate = 9600; // necessary to be as it shown in your phone properties in phones and modems
SP.DataBits = 8; // leave it as is
SP.Parity = Parity.None; //leave it as is
SP.StopBits = StopBits.One; //leave it as is
SP.Open(); // opening the port to be ready sending the SMS
string PH_NU;
PH_NU = char.ConvertFromUtf32(34) + TextBox1.Text + char.ConvertFromUtf32(34); .. tell the port to take the Phone Num you entered
SP.Write("AT+CMGF=1"+char.ConvertFromUtf32(13));
SP.Write("AT + CMGS="+PH_NU + char.ConvertFromUtf32(13));
SP.Write(TextBox2.Text + char.ConvertFromUtf32(26) + char.ConvertFromUtf32(13)); // sending the message in TextBox2 using the properties in the two above lines.
SP.Close();


}
}
}
  Permalink  

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 Suvendu Shekhar Giri 215
1 Mika Wendelius 188
2 CPallini 167
3 Sergey Alexandrovich Kryukov 139
4 OriginalGriff 125


Advertise | Privacy | Mobile
Web01 | 2.8.150731.1 | Last Updated 24 Feb 2013
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100