09-16-2012, 08:50 AM
Maybe you could try this one:
[code2=vbnet]Dim MyMailMessage As New MailMessage()
MyMailMessage.From = New MailAddress("your email")
MyMailMessage.To.Add("to someone")
MyMailMessage.Subject = ("your subject")
MyMailMessage.Body = "your text"
Dim SMTPServer As New SmtpClient("for example for Hotmail: smtp.live.com")
SMTPServer.EnableSsl = False
SMTPServer.Port = 587
SMTPServer.Credentials = New System.Net.NetworkCredential("your email", "your email password")
SMTPServer.EnableSsl = True
SMTPServer.Send(MyMailMessage)[/code2]
Hope this works for you!
[code2=vbnet]Dim MyMailMessage As New MailMessage()
MyMailMessage.From = New MailAddress("your email")
MyMailMessage.To.Add("to someone")
MyMailMessage.Subject = ("your subject")
MyMailMessage.Body = "your text"
Dim SMTPServer As New SmtpClient("for example for Hotmail: smtp.live.com")
SMTPServer.EnableSsl = False
SMTPServer.Port = 587
SMTPServer.Credentials = New System.Net.NetworkCredential("your email", "your email password")
SMTPServer.EnableSsl = True
SMTPServer.Send(MyMailMessage)[/code2]
Hope this works for you!