Good day ma'am / sir
I'am using gsm modem D-LINK DWM - 156 for sending sms in vb 6.0 but it does'nt work. please help me. here is my code
Private Sub cmdSend_Click()
On Error Resume Next
With objcom
.CommPort = txtPort.Text
.Settings = "9600,N,8,1"
.RTSEnable = False
.DTREnable = False
.RThreshold = 1
.SThreshold = 0
.PortOpen = True
.Output = "AT" & vbCrLf
.Output = "AT+CMGF=1" & vbCrLf
.Output = "AT+CMGS=" & Chr(34) & Trim(txtNumber) & Chr(34) & vbCrLf
.Output = Trim(txtMsg) & Chr(26)
Sleep 5000
.PortOpen = True
End With
MsgBox ("Message Sent!")
End Sub
thanks in advance.