473,388 Members | 1,400 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,388 software developers and data experts.

Using System.Web.Mail; error

JPS
When I add this to my references at the top of my form I get the error
message
"The type of namespace "mail" does not exist in the class or namespace
"System.Web [ar you missing an assembly or reference]"

Jan 12 '06 #1
4 1869
> When I add this to my references at the top of my form I get the error
message
"The type of namespace "mail" does not exist in the class or namespace
"System.Web [ar you missing an assembly or reference]"


Are you using .Net 1.1 or 2.0 (Mail is only available in 2.0)?

The errormessage above specifies "mail" in lowercase. Is that a typo in
the post or did you really use lowercase (it should be "Mail")?

At the top of the form you can only write "using clauses", not
"references". The real references (what assemblies can be used) should
be specified at project-level. Did you add a reference to System.Web (I
think) there?

Hans Kesting
Jan 12 '06 #2
"JPS" <jp*****@yahoo.com> wrote in message
news:11*********************@f14g2000cwb.googlegro ups.com...
"The type of namespace "mail" does not exist in the class or namespace
"System.Web [ar you missing an assembly or reference]"


The obvious question is did you add System.Web to your project references?

-- Alan
Jan 12 '06 #3
Hans Kesting wrote:
When I add this to my references at the top of my form I get the error
message
"The type of namespace "mail" does not exist in the class or namespace
"System.Web [ar you missing an assembly or reference]"


Are you using .Net 1.1 or 2.0 (Mail is only available in 2.0)?


The System.Web.Mail namespace is definitely available in .NET 1.1. It
doesn't have all the same features, but that's a different matter.

Jon

Jan 12 '06 #4
The using statement should be:

using System.Web.Mail;

--
Christopher A. Reed
"The oxen are slow, but the earth is patient."

"JPS" <jp*****@yahoo.com> wrote in message
news:11*********************@f14g2000cwb.googlegro ups.com...
When I add this to my references at the top of my form I get the error
message
"The type of namespace "mail" does not exist in the class or namespace
"System.Web [ar you missing an assembly or reference]"

Jan 13 '06 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: James Hong | last post by:
Help please, I try to sending an email from my html page using the java applet. but it give error on most of the PC only very few work, what is the error i make the java applet show as below ...
1
by: Trond A. S. Andersen | last post by:
Hi all, I'm working on a project in which i need to send mail attachments in the form of Excel documents from a .NET C# application. I've written a class which creates the Excel document using...
0
by: arkam | last post by:
Hi, I tryed to send an email with the smtpmail class in the .net framework and I got an error in Outlook. Here is my code: System.Web.Mail.MailMessage mail = new...
9
by: Bob Jones | last post by:
We have developed a commercial ASP.net application (personal nutrition management and tracking); we want to send smtp email from within it. For our development box, we use WinXP Pro, IIS 5.5,...
5
by: ElanKathir | last post by:
Hi ! I wrote one code for Send the E-mail, But that code have some problem , So please help me Here i paste my code and Error: Error: Server Error in '/Elan_Sample' Application. ...
3
by: pmud | last post by:
Hi, I have ab ASP.Net Application in which I need to send e-mail on button click. Even though my C# code for that is correct.I am getting the following error:: I think the following error can be...
6
by: ransoma22 | last post by:
I developing an application that receive SMS from a connected GSM handphone, e.g Siemens M55, Nokia 6230,etc through the data cable. The application(VB.NET) will receive the SMS automatically,...
1
by: Eric Sheu | last post by:
Greetings, I have been searching the web like mad for a solution to my SMTP problem. I am using Windows Server 2003 and ASP.NET 2.0 w/ C# to send out e-mails from a web site I have created to...
2
by: Ryan | last post by:
Hi, I receive an access denied error (see below) when attempting to send an email with BodyFormat=MailFormat.Html from an asp.net page. Exactly the same code works fine in a console...
7
by: Rob Dob | last post by:
The following code is giving me a timeout problem., no matter what I do I can't send a piece of mail using .net2.0 System.Net.Mail.SmtpClient via port 465 and using ssl, if however I try using...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.