Geeks With Blogs
ICaramba Miguel Castro's blog about .NET and its effect on National Security, the Eco-system, and his daughter's sleeping patterns. August 2005 Entries
Sending Mail the .NET 2.0 way
It seems that the protocol for sending email in .NET 2.0 has changed from what it was in 1.1. The System.Web.Mail namespace has been replaced with the new System.Net.Mail names code samplepace. The following is a C# code sample on how to send mail with 2.0: System.Net.Mail.SmtpClient o_Client = new System.Net.Mail.SmtpClient(... o_FromAddress = new System.Net.Mail.MailAddress... this.FromName);System.Net.M... o_ToAddress = new System.Net.Mail.MailAddress... ......

Posted On Sunday, August 7, 2005 7:12 PM

Copyright © Miguel A. Castro | Powered by: GeeksWithBlogs.net