thebeebs | Question: System.Web.Mail missing
thebeebs
Zeroing the desk - Ignore the design
 
 

Question: System.Web.Mail missing

by thebeebs 14. September 2009 06:14

 

Question:

I just ported some code from 2.0 to 3.5 and it’s now saying SmtpServer Isn’t a valid type.

 

Answer:

You should use SmtpClient and Mail message from the System.Net.Mail namespace rather than SmtpServer and MailMessage from the System.Web.Mail namespace.

 

emailClient

 

You can also set up your SMTP Client  in the config file:

 

image

Tags:

Add comment




  Country flag
biuquote
  • Comment
  • Preview
Loading