I already hunt google and any other forums but im still confused and cant find the right answer. Downloaded all possible files that might help but still no one works.
I know that this might be one of the MFAQ's but please do not refer me to any other else.
I am working with a text blast system. I was able to send a message to my phone number but the case now is different, I wanted to send a message to multiple contact numbers.
I have a hard understanding with the loop and I know or believe that this one require a loop process to complete.
Can anyone assist me this is the code for sending SMS.
Try
With SerialPort1
.Write("at" & vbCrLf)
Threading.Thread.Sleep(1000)
.Write("at+cmgf=1" & vbCrLf)
Threading.Thread.Sleep(1000)
.Write("at+cmgs=" & Chr(34) & txtNumber.Text & Chr(34) & vbCrLf & Chr(34))
.Write(rtbMessage.Text & vbNewLine & vbNewLine & "Note: Please do not Reply." & Chr(26))
Threading.Thread.Sleep(1000)
End With
MessageBox.Show("Message Sent!", "[ BMS - SMS Blast ] - Sending Complete", MessageBoxButtons.OK, MessageBoxIcon.Information)
Catch ex As Exception
MessageBox.Show(ex.Message, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error)
End Try
What I have tried:
I have tried a lot specially some codes here but no one works.