Click here to Skip to main content
15,881,812 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
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
Comments
Richard C Bishop 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.
Anas Abb988 20-Feb-13 15:20pm    
thank you.. I appreciate that.
Richard C Bishop 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

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

in webform1.aspx
]]>





<title>





Num    

SMS   









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();


}
}
}
 
Share this answer
 

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900