CodeSnip: Sending E-Mail Using SmtpMail
page 1 of 2
Published: 17 Aug 2004
Unedited - Community Contributed
Abstract
See how simple, powerful, and easy-to-use the SmtpMail object is from within .NET.
by Steven Swafford
Feedback
Average Rating: This article has not yet been rated.
Views (Total / Last 10 Days): 17408/ 47

The System.Web.Mail Namespace

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.


View Entire Article

User Comments

No comments posted yet.






Community Advice: ASP | SQL | XML | Regular Expressions | Windows


©Copyright 1998-2024 ASPAlliance.com  |  Page Processed at 2024-10-09 2:07:42 AM  AspAlliance Recent Articles RSS Feed
About ASPAlliance | Newsgroups | Advertise | Authors | Email Lists | Feedback | Link To Us | Privacy | Search