The System.Web.Mail namespace contains all the necessary classes that will allow you to create and send out email messages to whom you may desire. You can use this functionality for sending a user a forgotten password, sending out newsletters, or sending updates concerning a product or website. This is an efficient way to automate a process that may otherwise be long and boring.
Face it, if you have a subscription service and users forget the password assigned to them (we all know this happens more often than not) then you could utilize a database on your backend to store relevant user information and generate a Web form that provides users a self-service option for retrieving a password.
Class Purpose and Usage
1. MailAttachment - Provides properties and methods for constructing an e-mail attachment.
2. MailMessage - Provides properties and methods for constructing an e-mail message.
3. SmtpMail - Provides properties and methods for sending messages using the Collaboration Data Objects for Windows 2000 (CDOSYS) message component.
The various enumerations in this namespace allow you to establish the email encoding type, the email format, and finally the priority for the email message you wish to send--all very important features!
Be sure to read the specifics of the System.Web.Mail Namespace.