I converted a asp.net web app from VS 2003 to VS 2005.
i now get error message when i build it stating
system.web.mail is obsolute, use system.net.mail
i redefine to system.net.mail
but now i get other error message such as
smtpMail does not exist in the current context.
cannot implicitly convert type string to System.Net.Mail.MailAddress
so System.Web.Mail want work in ASP.net web app convert to VS 2005 running on framework 2.0? because if i change to System.Net.Mail i am getting all other errror related to email functions.
please help!
please help!
![]() |
0 |
![]() |
Hi SudhaS,
Just replace your old email code with new code from the System.Net.Mail namespace. There are some good examples in the docs:
http://msdn2.microsoft.com/en-us/library/system.net.mail.mailmessage.aspx
Joe
Free C# Tutorial
![]() |
0 |
![]() |