Sunday, August 31, 2008

Easy SMTP Mail Using ASP.NET 2.0

Easy SMTP Mail Using ASP.NET 2.0
By salysle

The article addresses two topics: sending an email message to a standard email account, and sending an SMS message to a cell phone or pager.
Introduction
The article addresses two topics: sending an email message to a standard email account, and sending an SMS message to a cell phone or pager. The approach uses the SMTP client contained in System.Net to accomplish both types of message submittal, and all messages are sent from ASP.NET 2.0 ASPX pages.

The SMTP email portion application will demonstrate the following:

Using SMTP to configure and send email messages
Adding ‘CC’ addresses as message recipients
Adding attachments to a message
The SMS portion of the email application will demonstrate the following:

Passing standard email messages through the carrier to deliver SMS messages to the target.
In addition to discussing the small bit of code necessary to send these messages, the document will address the primary configuration requirements needed to successfully send messages through an ASP.NET 2.0 based website on an IIS server.

In order to use this demonstration, you should have an instance of IIS installed on your development machine, you should have Visual Studio 2005 installed, and you should have the optional SMTP mail server installed in your local IIS instance.


http://www.codeproject.com/KB/aspnet/EasySMTP_package.aspx

ASP.Net Feeds