neophyte
04-26-2009, 01:28 PM
Hello everybody,
that to help me plz :popconrzbitch
ok .. i want creat
a TextBox...and one Button For send to E-mail the TextBox
Sub MainEvents()
Try
Dim MyMailMessage As New MailMessage()
MyMailMessage.From = New MailAddress("You E-mail")
MyMailMessage.To.Add("You E-mail")
MyMailMessage.Subject = "Test"
MyMailMessage.Body = textbox2.Text
Dim SMPT As New SmtpClient("smtp.You E-mail")
SMPT.Port = 587
SMPT.EnableSsl = True
SMPT.Credentials = New System.Net.NetworkCredential("you E-mail", "you password")
SMPT.Send(MyMailMessage)
TextBox1.Text = "ok send"
Catch ex As Exception
End Try
End Sub
I have no error .. but when I want to send E-mail it does no work..
Thx For Help!
Sry i speak bad english.
that to help me plz :popconrzbitch
ok .. i want creat
a TextBox...and one Button For send to E-mail the TextBox
Sub MainEvents()
Try
Dim MyMailMessage As New MailMessage()
MyMailMessage.From = New MailAddress("You E-mail")
MyMailMessage.To.Add("You E-mail")
MyMailMessage.Subject = "Test"
MyMailMessage.Body = textbox2.Text
Dim SMPT As New SmtpClient("smtp.You E-mail")
SMPT.Port = 587
SMPT.EnableSsl = True
SMPT.Credentials = New System.Net.NetworkCredential("you E-mail", "you password")
SMPT.Send(MyMailMessage)
TextBox1.Text = "ok send"
Catch ex As Exception
End Try
End Sub
I have no error .. but when I want to send E-mail it does no work..
Thx For Help!
Sry i speak bad english.