My code working perfectly if the SMS messages to be sent has less than 70 characters.
I want to send messages with between 70 to 200 characters per message.
using GsmComm.GsmCommunication;
using GsmComm.PduConverter;
using GsmComm.Server;
using GsmComm.PduConverter.SmartMessaging;
namespace SMSSender
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void button1_Click(object sender, EventArgs e)
{
try
{
string msg = " کو ہم نے";
GsmCommMain comm = new GsmCommMain(4, 19200, 500);
comm.Open();
SmsSubmitPdu pdu;
pdu = new SmsSubmitPdu(msg, "03319310077", DataCodingScheme.NoClass_16Bit);
comm.SendMessage(pdu);
}
catch (Exception ex)
{
MessageBox.Show(ex.Message);
}
}
}
}