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.
You can also set up your SMTP Client in the config file:

2a79ba12-03ed-496c-a6ee-4aa4bb9904f3|0|.0
Tags: