Visual basic 2008/2010 Tutorial - Email Sender using Smtphttp://www.teamnibic.com NEW CHANNEL: http://www.youtube.com/teamnibic This tutorial is about how to send emails with vb.net using a smtp server Servers: Hotmail: Smtp.live.com Port: 587 Gmail: smtp.gmail.com Port: 587 Yahoo: smtp.mail.yahoo.com Port: 465 Aol: smtp.aol.co.uk Port: 587 ----------------------- Codes: imports system.net.mail dim Mail as new mailmessage Try mail.From = New MailAddress("FROM EMAIL") mail.To.Add(TO EMAIL) mail.Subject = "SUBJECT" mail.Body = "BODY" Dim s As New SmtpClient("HOST") s.Port = PORT s.EnableSsl = True s.Credentials = New System.Net.NetworkCredential("FROM EMAIL, "FROM PASSWORD") s.Send(Mail) MsgBox("E-mail was sucsessfully sent!", MsgBoxStyle.Information, "Information") Catch ex As Exception End Try code pour embarquer la vidéo : >>> http://www.youtube.com/embed/9VBO5A-dNmo <<< |