Sending Email with System.Net.Mail

Posted by: ScottGus Blog, on 10 Dec 2005 | View original | Bookmarked: 0 time(s)

.NET 2.0 includes much richer Email API support within the System.Net.Mail code namespace.  I've seen a few questions from folks wondering about how to get started with it.  Here is a simple snippet of how to send an email message from sender@foo.bar.com to multiple email recipients (note that the To a CC properties are collections and so can handle multiple address targets):   MailMessage message = new MailMessage(); message.From = new MailAddress("sender@foo.bar.com");  ...

Advertisement
Free Agile Project Management Tool from Telerik
TeamPulse Community Edition helps your team effectively capture requirements, manage project plans, assign and track work, and most importantly, be continually connected with each other.
Category: ASP.NET | Other Posts: View all posts by this blogger | Report as irrelevant | View bloggers stats | Views: 2114 | Hits: 250

Similar Posts

  • My History of Visual Studio (Part 7) more
  • How to retire (respectfully) legacy systems more
  • Working on Silverlight .NET RIA Services Part 2 more
  • Open SQL Port for specific IP by ASP.NET Website more
  • ASP.NET MVC: DevExpress Mail Demo more
  • Update to Logging in to DotNetNuke from a Silverlight Application with RIA Authentication more
  • SQL 2008 CLR Triggers, use a .NET class library in SQL using WPF more
  • Logging in to DotNetNuke from a Silverlight Application with RIA Authentication more
  • WSE, DIME; WCF, MTOM; OH My! more
  • A (less) simple include for ASP.NET more

News Categories

.NET | Agile | Ajax | Architecture | ASP.NET | BizTalk | C# | Certification | Data | DataGrid | DataSet | Debugger | DotNetNuke | Events | GridView | IIS | Indigo | JavaScript | Mobile | Mono | Patterns and Practices | Performance | Podcast | Refactor | Regex | Security | Sharepoint | Silverlight | Smart Client Applications | Software | SQL | VB.NET | Visual Studio | W3 | WCF | WinFx | WPF | WSE | XAML | XLinq | XML | XSD