Hello hackforums ✌
I'm trying to make a email sender for people that need help can send me a quick email
This is how the project looks
![[Image: uX7vBSR]](https://imgur.com/uX7vBSR)
- https://imgur.com/uX7vBSR
This is my code :
I don't know what im doing wrong when i try send a email it gives me this error
![[Image: tyAYKsL]](https://imgur.com/tyAYKsL)
- https://imgur.com/tyAYKsL
I'm trying to make a email sender for people that need help can send me a quick email
This is how the project looks
- https://imgur.com/uX7vBSR
This is my code :
Quote: Imports System.Net.Mail
Public Class Sendemail
Private Sub Button1_Click( sender As Object, e As EventArgs) Handles Button1.Click
Dim Mail As New MailMessage
Mail.Subject = "[email protected]"
Mail.To.Add(TextBox2.Text)
Mail.From = New MailAddress (TextBox2.Text)
Mail.Body = TextBox1.Text
Dim SMTP As New SmtpClient ("smtp.gmail.com")
SMTP.EnableSsl = True
SMTP.Credentials = New System.Net.NetworkCredential (TextBox2.Text, TextBox3.Text)
SMTP.Port = 587
SMTP.Send(Mail)
Me.Close()
End Sub
End Class
I don't know what im doing wrong when i try send a email it gives me this error
- https://imgur.com/tyAYKsL



