ASP 101 - Active Server Pages 101 - Web03
The Place ASP Developers Go!

Please visit our partners


Windows Technology Windows Technology
15 Seconds
4GuysFromRolla.com
ASP 101
ASP Wire
VB Forums
VB Wire
WinDrivers.com
internet.commerce internet.commerce
Partners & Affiliates














ASP 101 is an
internet.com site
ASP 101 is an internet.com site
IT
Developer
Internet News
Small Business
Personal Technology

Search internet.com
Advertise
Corporate Info
Newsletters
Tech Jobs
E-mail Offers

ASP 101 News Flash ASP 101 News Flash





ASP.NET version of "Email"


Everyone needs to send email. That's all there is to it.

Well in ASP.NET email is sent a little differently. Most stuff is similar and it's actually still processed by the SMTP Server just like in ASP, but it's no longer CDONTS. Instead you use the MailMessage and SmtpMail objects from the System.Web.Util namespace. This namespace has been through a couple different names so it might change again before release, but this one works with the version we're running. (That was Beta 1... well it changed again to System.Web.Mail in Beta 2!) If it stops working with later releases just check back here. As always, we'll be posting new versions whenever we find a way to improve on the code.

Like I said... they keep changing it... this time it's from the ASP.NET 1.x's System.Web.Mail to ASP.NET 2.0's System.Net.Mail. For the time being your old code will still work, but the classes in the System.Web.Mail namespace have been deprecated so be sure to use System.Net.Mail from now on.

Here's a zip file of the code!

Play with the running version.


Back to the "Email" sample


Samples

Home |  News |  Samples |  Articles |  Lessons |  Resources |  Forum |  Links |  Search |  Feedback

Internet.com
The Network for Technology Professionals

Search:

About Internet.com

Legal Notices, Licensing, Permissions, Privacy Policy.
Advertise | Newsletters | E-mail Offers