thebeebs | Question: System.Web.Mail missing
Home » Questions

Question: System.Web.Mail missing

14. September 2009 by thebeebs 0 Comments

 

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

Comments

Add comment


(Will show your Gravatar icon)  

  Country flag

biuquote
  • Comment
  • Preview
Loading