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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

SMTP Usage in C#

Status
Not open for further replies.

Snoozer654

Programmer
Oct 15, 2004
9
0
0
CA
I have been trying to use the smtp server class but am unable to get even started. My problem is that the documentation states I must use:


using System.Web.Mail

This gives me a compiler error.

This silly issue has been giving me heartburn for about a week now. Anyone have any ideas?


 
More info about the compiler error is necessary, if we don't have to ask the fortune teller lady :)
 
Here is the error:

C:\Documents and Settings\User\My Documents\Visual Studio Projects\TravelResources\Form1.cs(8): The type or namespace name 'Mail' does not exist in the class or namespace 'System.Web' (are you missing an assembly reference?)

and this is the offender:

using System.Web.Mail;

Thanks for any help.
 
Have you added a reference to it?
Right -click on the references part of your project tree, and click add.

Chip H.


____________________________________________________________________
If you want to get the best response to a question, please read FAQ222-2244 first
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top