public void SetCommParameters() { try { mCore.License objLic = objSMS.License(); objLic.Company = "The CompanyX Inc."; objLic.LicenseType = "PRO-DISTRIBUTION"; objLic.Key = "AE1K-X12R-GHEK-JEWS"; objSMS.Port = sGSM; if (sSMS != "") { objSMS.SMSC = sSMS; } objSMS.BaudRate = mCore.BaudRate.BaudRate_19200; objSMS.DataBits = mCore.DataBits.Eight; objSMS.StopBits = mCore.StopBits.One; objSMS.Parity = mCore.Parity.None; // objSMS.SMSC = "+919884005444"; //objSMS.SMSC = "+919840011003"; objSMS.Connect(); MessageBox.Show("SMS sent successfully"); //objSMS.FlowControl = mCore.FlowControl.RTS_CTS; } catch { } }