in

Dot Net Mafia

Group site for developer blogs dealing with (usually) .NET, SharePoint 2013, SharePoint 2010, Office 365, SharePoint Online, and other Microsoft products, as well as some discussion of general programming related concepts.

This Blog

Syndication

Archives

Corey Roth [MVP]

A SharePoint MVP bringing you the latest time saving tips for SharePoint 2013, Office 365 / SharePoint Online and Visual Studio 2013.

Sending mail with System.Net.Mail

I mentioned a while back that the existing SmtpMail object in System.Web had been rendered obsolete.  If you are writing some new code and wish to send mail, use System.Net.Mail instead.  This code snippet from Scott will show you how to do it.
 

Read the complete post at http://www.dotnettipoftheday.com/blog.aspx?id=6

2012 dotnetmafia.
Powered by Community Server (Non-Commercial Edition), by Telligent Systems