For whatever reason the web is filled with outdated examples of sending email with C#. This an example using .NET 2.0 First, be sure to import the Mail libs at the top of your class: using System.Net.Mail; Then in your code where the email will be sent: MailMessage msg = new MailMessage(); msg.From = new [...]
Archive | November 1, 2007