You can not add a reference to System.Web.Mail because it is a namespace
name. You could add a reference to an assembly. Which one depends on the
class you want to use. At the bottom of the documentation of the class there
is the name of the assembly containing the class. Choose it when adding the
reference (e.g. by right-clicking on the "references" node in the solution
explorer and selecting "add reference").
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.