mentalpax.blogg.se

Vb net 2010 send text message
Vb net 2010 send text message












vb net 2010 send text message

To.Add(New MailAddress(strX)) End If Next. From = New 'able to handle more than a single recipient strAddresses = ' or whatever service For Each strX As String In strAddresses.Split(" "c) If > 0 Then. Private Sub SendMessage() Dim strAddresses As String Dim pMailMessage As New MailMessage 'Prepare the message With pMailMessage. I guess I am asking, is there a way to connect a number to it's provider dynamically from maybe a "prefix" or something?. but I would like it to be dynamic or automatic. How can I send the message to just a phone number without knowing the phone numbers provider information? I have already produced a drop-down box where you can choose providers for yourself. Please disregard personal code for my routines, and try to concentrate on the actual result. Then I finally found a work around by using google gmail which sends sms messages for ya. SMTP.Credentials = New dudes & dudettes, I tried to figure out how to send a text notification from my application to cell phones and it stumped me. 'Since this is a SMS and MMS portion their will be no need to add a subject feild.Į(mailto + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + = New MailAddress(mailfrom) But at least one will get to the actual phone number. Obviously only one message will ever be recieved and the sender of the message will get a whole bunch of delivery failure messages. We can try to send the same message to all of of the SMS gateways for that number. Since their will only always be just one phone. 'The idea behind this section is mainly to use the SMS Gateways and using the same E-Mail Form. SMTP.Credentials = New (username, password)ĮlseIf cbAction.Visible = True And cbAction.Text = "Send" And tbSubject.Visible = False Then 'Now lets test the E-Mail functionality on our phone gap site. So try creating a list of all the SMS gateways and having the the user type their number in and then sending the message out with the users entered will work.

vb net 2010 send text message

Only one message will be recieved because the other SMS gateways don't have a number for it. Remember only one phone number can exist so sending an sms message to and will only will work. If that is the case you should do the same as you would when sending E-Mails with VB. For example I think what your asking is how to send an SMS message from your VB. But I think you simply want to send an SMS message in your VB. Not sure if I fully understand what your saying.














Vb net 2010 send text message