System.web.mail to System.net.mail

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
SudhaS
3/20/2007 3:56:41 PM
📁 asp.net.migrate-vs2003-vs2005
📃 590 articles.
⭐ 0 followers.

💬 1 Replies
👁️‍🗨️ 1583 Views

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
JMayo
3/21/2007 3:32:12 AM