You can send sms from Winform Application to Mobile phone by modem.
you have to know which port the modem is connected.
using System.IO.Ports;
SerialPort srpModemPort = null;
string port_name = "COM1";
srpModemPort = new SerialPort();
srpModemPort.PortName = port_name;
srpModemPort.BaudRate = 115200;
srpModemPort.Parity = Parity.None;
srpModemPort.DataBits = 8;
srpModemPort.StopBits = StopBits.One;
srpModemPort.Handshake = Handshake.RequestToSend;
srpModemPort.DtrEnable = true;
srpModemPort.RtsEnable = true;
srpModemPort.NewLine = System.Environment.NewLine;
srpModemPort.WriteTimeout = 2000;
Then you can send sms by this ->
string mobile_number = "+88XXXXXXXXXXX";
string message = "Hi";
try
{
if (!srpModemPort.IsOpen)
srpModemPort.Open();
srpModemPort.WriteLine("AT+CMGS=" + mobile_number + "\r" + message + (char)(26));
MessageBox.Show("Message Send.....");
}
catch(Exception ex)
{
MessageBox.Show(ex.Message);
}