Digital Colony is the ad-free technical web site for Michael Allen Smith of Seattle, WA.
Amazon Link ASP.NET Report DeepFitness API Geocoding GridView Highlighter Mask Email SmugMug
Microsoft Silverlight 4 Business Application Development: Beginners Guide by Cameron Albert
Dim Message As MailMessage = New MailMessage() Dim Smtp As New SmtpClient() Dim SmtpUser As New System.Net.NetworkCredential() '-- Build Message Message.From = New MailAddress("larryking@cnn.com", "Larry King") Message.To.Add(New MailAddress("oprah@oprah.com", "Oprah")) Message.IsBodyHtml = False Message.Subject = "Come on My Show Soon" Message.Body = "Please be a guest on my show. - Larry" '-- Define Authenticated User SmtpUser.UserName = "larryking" SmtpUser.Password = "suspenders" SmtpUser.Domain = "mail.cnn.com" '-- Send Message Smtp.UseDefaultCredentials = False Smtp.Credentials = SmtpUser Smtp.Host = "mail.cnn.com" Smtp.DeliveryMethod = SmtpDeliveryMethod.Network Smtp.Send(Message)
Labels: Email, VB.NET
posted by MAS on Aug 20,2007
If you found this site helpful, consider buying me a cup of coffee.
Digital Colony Copyright © 1999-2010 XHTML 508 Try...Catch Disclaimer: For brevity many examples do not include error handling. That is your responsibility.