title: Sending SMS through GSM modem to mobile phone
body: <p>Using VB.NET I need to send a SMS using GSM modem to a mobile phone.</p>
  
  <p>Currently I have the following code:</p>
  
  <pre><code>Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
      If serialport.IsOpen Then
          serialport.Close()
      End If
      Try
          With serialport
              .PortName = ComboBox1.Text
              .BaudRate = 96000
              .Parity = Parity.None
              .DataBits = 8
              .StopBits = StopBits.One
              .Handshake = Handshake.RequestToSend
              .DtrEnable = True
              .RtsEnable = True
              .NewLine = vbCrLf
          End With
          serialport.Open()
      Catch ex As Exception
      End Try
      serialport.WriteLine("AT+CMGF=1" &amp; vbCr)
      System.Threading.Thread.Sleep(200)
      serialport.WriteLine("AT+CMGS=" &amp; Chr(34) &amp; "destination" &amp; Chr(34) &amp; vbCr)
      System.Threading.Thread.Sleep(200)
      serialport.WriteLine("test message" &amp; vbCrLf &amp; Chr(26))
      System.Threading.Thread.Sleep(200)
  End Sub
  </code></pre>
  
  <p>The thing is, it seems that this code is not working.</p>
  
  <p>Can you check if this is correct or not. Or just give me some threads which can help me with this.</p>