• Hello Guest! Welcome to ConsoleCrunch, to help support our site check out the premium upgrades HERE! to get exclusive access to our hidden content.
  • Unable to load portions of the website...
    If you use an ad blocker addon, you should disable it because it interferes with several elements of the site and blocks more than just adverts.
  • Read Rules Before Posting Post Virus Scans with every program.

[VB.NET] Send a text message to a Cell phone

1UP

Member
Well oddly enough when you text a cell phone it's like emailing someone, in a sense that it actually uses an email address.

This is some sample code from my SMS spammer I made a long time back:

To get this started you need to do some imports at the top of your form or class:

Code:
Imports System.Net.Mail
Imports System.Net
Imports System.Diagnostics

Then the code for sending the email:
Code:
 Dim smtp As SmtpClient = Nothing
  Dim sms_message As New MailMessage()
 sms_message.From = New MailAddress(My.Settings.email)
  sms_message.To.Add(txt_number.Text & provider)
  sms_message.Subject = txt_subject.Text
  sms_message.Body = txt_message.Text
  smtp = New SmtpClient("smtp.gmail.com")
  smtp.Port = 587
  smtp.EnableSsl = True
  ' Edit email address  and password accorindingly. You don't need to have @gmail.com
  smtp.Credentials = DirectCast(New NetworkCredential(My.Settings.user_name, My.Settings.password), ICredentialsByHost)
  smtp.Send(sms_message)
  ProgressBar1.PerformStep()

Now this was a chunk of code taken from the actual program and sitting as it wont work correctly.

Somethings that need to be changed:
Code:
 smtp.Credentials = DirectCast(New NetworkCredential(My.Settings.user_name, My.Settings.password), ICredentialsByHost)

My.settings.user_name and My.settings.password , My.setttings.email

You can just Dim 3 variables as string and sub those in.

Code:
 sms_message.To.Add(txt_number.Text & provider)
Provider is the cell phone carrier and txt_number is well their cell number.

I'll be nice and also include the sms addresses.

You can ignore the case statements and just pull the address's from it

Code:
  If country = "USA" Then
  Select Case cmb_phone_services.SelectedIndex
  Case 0
  provider = "@vtext.com"
  Case 1
  provider = "@txt.att.net"
  Case 2
  provider = "@message.alltel.com"
  Case 3
  provider = "@page.nextel.com"
  Case 4
  provider = "@myboostmobile.com"
  Case 5
  provider = "@tmomail.net"
  Case 6
  provider = "@vmobl.com"
  Case 7
  provider = "@messaging.sprintpcs.com "
  Case 8
  provider = "@msg.acsalaska.com"
  Case 9
  provider = "@gocbw.com"
  Case 10
  provider = "@rinasms.com"
  Case 11
  provider = "@email.uscc.net"
  Case 12
  provider = "@viaerosms.com"
  Case 13

  End Select
  ElseIf country = "Canada" Then
  Select Case cmb_phone_services.SelectedIndex
  Case 0
  provider = "@txt.bell.ca"
  Case 1
  provider = "@msg.telus.com"

  Case 2
  provider = "@vmobl.com"

  Case 3
  provider = "@sms.sasktel.com"

  Case 4
  provider = "@msg.koodomobile.com"

  Case 5
  provider = "@fido.ca"

  Case 6
  provider = "@pcs.rogers.com "
  End Select

  ElseIf country = "UK" Then
  Select Case cmb_phone_services.SelectedIndex
  Case 0
  provider = "@sms.t-mobile.at"
  Case 1
  provider = "@orange.pl"
  Case 2
  provider = "@sms.mymeteor.ie"
  Case 3
  provider = "@text.plusgsm.pl"
  Case 4
  provider = "@t-mobile.uk.net"
  Case 5
  provider = "@tachyonsms.co.uk"
  Case 6
  provider = "@sms.ycc.ru"
  End Select
  End If
 
Well oddly enough when you text a cell phone it's like emailing someone, in a sense that it actually uses an email address.

This is some sample code from my SMS spammer I made a long time back:

To get this started you need to do some imports at the top of your form or class:

Code:
Imports System.Net.Mail
Imports System.Net
Imports System.Diagnostics

Then the code for sending the email:
Code:
 Dim smtp As SmtpClient = Nothing
  Dim sms_message As New MailMessage()
sms_message.From = New MailAddress(My.Settings.email)
  sms_message.To.Add(txt_number.Text & provider)
  sms_message.Subject = txt_subject.Text
  sms_message.Body = txt_message.Text
  smtp = New SmtpClient("smtp.gmail.com")
  smtp.Port = 587
  smtp.EnableSsl = True
  ' Edit email address  and password accorindingly. You don't need to have @gmail.com
  smtp.Credentials = DirectCast(New NetworkCredential(My.Settings.user_name, My.Settings.password), ICredentialsByHost)
  smtp.Send(sms_message)
  ProgressBar1.PerformStep()

Now this was a chunk of code taken from the actual program and sitting as it wont work correctly.

Somethings that need to be changed:
Code:
 smtp.Credentials = DirectCast(New NetworkCredential(My.Settings.user_name, My.Settings.password), ICredentialsByHost)

My.settings.user_name and My.settings.password , My.setttings.email

You can just Dim 3 variables as string and sub those in.

Code:
 sms_message.To.Add(txt_number.Text & provider)
Provider is the cell phone carrier and txt_number is well their cell number.

I'll be nice and also include the sms addresses.

You can ignore the case statements and just pull the address's from it

Code:
  If country = "USA" Then
  Select Case cmb_phone_services.SelectedIndex
  Case 0
  provider = "@vtext.com"
  Case 1
  provider = "@txt.att.net"
  Case 2
  provider = "@message.alltel.com"
  Case 3
  provider = "@page.nextel.com"
  Case 4
  provider = "@myboostmobile.com"
  Case 5
  provider = "@tmomail.net"
  Case 6
  provider = "@vmobl.com"
  Case 7
  provider = "@messaging.sprintpcs.com "
  Case 8
  provider = "@msg.acsalaska.com"
  Case 9
  provider = "@gocbw.com"
  Case 10
  provider = "@rinasms.com"
  Case 11
  provider = "@email.uscc.net"
  Case 12
  provider = "@viaerosms.com"
  Case 13

  End Select
  ElseIf country = "Canada" Then
  Select Case cmb_phone_services.SelectedIndex
  Case 0
  provider = "@txt.bell.ca"
  Case 1
  provider = "@msg.telus.com"

  Case 2
  provider = "@vmobl.com"

  Case 3
  provider = "@sms.sasktel.com"

  Case 4
  provider = "@msg.koodomobile.com"

  Case 5
  provider = "@fido.ca"

  Case 6
  provider = "@pcs.rogers.com "
  End Select

  ElseIf country = "UK" Then
  Select Case cmb_phone_services.SelectedIndex
  Case 0
  provider = "@sms.t-mobile.at"
  Case 1
  provider = "@orange.pl"
  Case 2
  provider = "@sms.mymeteor.ie"
  Case 3
  provider = "@text.plusgsm.pl"
  Case 4
  provider = "@t-mobile.uk.net"
  Case 5
  provider = "@tachyonsms.co.uk"
  Case 6
  provider = "@sms.ycc.ru"
  End Select
  End If
Can you make the cellphone spammer agian i want to do it to my parents xD
 
Well the code is there to do it. My original one lost a long time ago. I could re-write it but I just don't see the point in it.
:okay: its just i dont know how to code
 
General chit-chat
Help Users
  • @ QM|T_JinX:
    for sure haha well lets hope right
  • @ QM|T_JinX:
    i still think if there was a jailbreak for ps4 this site would have been back for sure
  • @ God:
    That would be awesome I’m sure it will happen before long, technology now a days is crazy! If we can work out a deal and plans I’ll be spreading the word and doing a lot to make it better more attractive and helpful fourms tips giveaways and all
  • @ God:
    I’ve been messing and working with trying to make great CSS for the names. Like Staff Premium news writer etc..
  • @ QM|T_JinX:
    ok so hows that going /
  • @ God:
    It’s going good. So we will see what happens and if the site can come back like it was or better
  • @ QM|T_JinX:
    nice yea lets hope
  • @ QM|T_JinX:
    im going to play some red dead it was great to have spoken to you bro nice to see you back on here
  • @ QM|T_JinX:
    hope you have a great night bro
  • @ God:
    It was good talking with you as well, you have a great night! We will talk later bro
    +1
  • Chat Bot:
    QM|T_JinX has joined the room.
  • @ QM|T_JinX:
    have a great weekend everybody ill be back after the weekend
  • Chat Bot:
    OkBrruh is our newest member. Welcome!
  • Chat Bot:
    uncrtin is our newest member. Welcome!
  • Chat Bot:
    BigTechModz is our newest member. Welcome!
  • @ BigTechModz:
    Hey this is RexMods I don’t remember the login to my old account so I made a new one I am now known as BigTechModz
  • Chat Bot:
    QM|T_JinX has joined the room.
  • Chat Bot:
    QM|T_JinX has joined the room.
  • Chat Bot:
    iDior2K is our newest member. Welcome!
  • Chat Bot:
    QM|T_JinX has joined the room.
  • Chat Bot:
    KillerDino49 is our newest member. Welcome!
  • Chat Bot:
    Xiomber is our newest member. Welcome!
  • Chat Bot:
    QM|T_JinX has joined the room.
  • Chat Bot:
    QM|T_JinX has joined the room.
  • Chat Bot:
    QM|T_JinX has joined the room.
      Chat Bot: QM|T_JinX has joined the room.
      Back
      Top