AspNetAtoms.com daily updates on ASP.NET Tutorials, Articles, Authors and more. Subscribe to our newsletter and receive updates on ASP.NET resources on the Internet.

Categories

Recent Posts

Sending Email in ASP.NET 2.0 : Scott Mitchell

Monday, June 30 2008

The .NET Framework version 1.x included a number of classes in the System.Web.Mail class that allowed programmatically sending an email with a few scant lines of code. While this namespace and these classes still exist in the .NET Framework version 2.0, they have been deprecated in favor of new mail-related classes found in the System.Net.Mail namespace. In this article we'll look at the classes in the System.Net.Mail namespace and see how to send an email from an ASP.NET 2.0 page's code-behind class. Email serves as a ubiquitous, asynchronous notification and information distribution system. Not surprisingly, there are many web development scenarios where server-side code needs to generate an email and scuttle it off to the intended recipient. The email may be destined for a user of the website, informing them of their newly created user account, reminding them of their forgotten password, or emailing them an invoice. Or it may be destined for a web developer or site administrator, providing information of an unhandled exception that just transpired or user feedback....



Read More:
Sending Email in ASP.NET 2.0 : Scott Mitchell
Also See:
Mail Templates : Kleshchevnikov Alexander
ASP.NET Tip: Sending Mail with ASP.NET 2.0 : Eric Smith
Send Email with Authentication using ASP.NET and VB
Send Email with Attachment in ASP.NET and C#

Post your comment

Comment