Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Can't locate System.Net.Mail

Status
Not open for further replies.

markknowsley

Programmer
Aug 30, 2005
152
GB
I want to send an email from within my C# code. I've found a tutorial on the web that suggests the following statement:

MailMessage objEmail = New MailMessage();

However, to use this I need the namespace System.Net.Mail.MailMessage;

which I cannot seem to access - the only option I have is System.Net.Sockets. I've had a look in the References section of my C# project and there is no System.Net.dll

Any ideas where i'm going wrong?
 
Isn't it System.Web.Mail?

You might have to add it to your references.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top