Click here to Skip to main content
16,003,216 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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.

C#
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.
Posted
Updated 4-Jul-16 7:01am
Comments
Suvendu Shekhar Giri 4-Jul-16 12:45pm    
Where is the logic for passing multiple cotacts here?

1 solution

 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900