In previous Article i had provide a way to send free sms from our aspx page to mobile trough way2sms.com
Now in these article,
let see how can we read the sms of mobile and to send sms to destination mobiles through c#.net
Let us follow the steps as:
1)Send sms with mobile using c#,gsmcomm a free library available which can be obtained from the following web.
2) Create the following form as
2. Baud rate you can add values ranging from 1..15 in port combo box
-> you need to download the library and add reference to your project.
all you need is to have a GSM enabled mobile.
For testing the connection with your mobile
create a object for the class GsmCommMain
For baud speed rate use coding as
public static GsmCommMain comm;
comm = new GsmCommMain(Comm_Port, Comm_BaudRate); //comm_port id of the combobox
For sending sms you have to design a windows form
with the destination number and message field and a button named send
//codings in click event fo button as
pdu = new SmsSubmitPdu(txmessage.Text, txdestination.Text, "");
And finally u need to connect to the mobile using gsm
and execute it
look the below screen shots as
finally for more clarifications
please find attachment here
Thanks and regards,