Hi
can any body tell me how can i send arabic sms with at-command in C# ?
i try with this code but the message show incorrect on phone !

serialPort1.BaseStream.Flush();

                string cb = char.ConvertFromUtf32(26);

                System.Threading.Thread.Sleep(2000);

                this.serialPort1.Write("AT+CMGF=1\r");
                this.serialPort1.Write("AT+CSCA=servicecenter\r\n");//Ufone Service Center

                this.serialPort1.Write("AT+CSCS=\"" + "HEX" + "\"\r\n");
                this.serialPort1.Write("AT+CSMP=\"" + 1 + "," + 167 + "," + 0 + ","  +8+ "\"\r\n");
                this.serialPort1.Write("AT+CMGS=\"" + textBox1.Text + "\"\r\n");// message sending
                this.serialPort1.Write(textBox2.Text + cb);//message text

and massege is this :

06450631062D06280627

please help me thanks

Recommended Answers

All 3 Replies

SMS is not for free. This will not do. There are ways but you will have to pay the service. Are you still intereseted?

SMS is not for free. This will not do. There are ways but you will have to pay the service. Are you still intereseted?

That's not true. You can send sms for free using SMTP (as long as you can find your opearator's sms gateway).
http://en.wikipedia.org/wiki/List_of_SMS_gateways

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.