473,395 Members | 1,379 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,395 software developers and data experts.

Imports System.Web.Mail ... error

I'm using VS 2003, im trying to write a windows app that will send an emial
bt when I import the Imports System.Web.Mail give me an error, it finds
Imports System.Web but not the mail part any ideas ?

Imports System.Web
Imports System.Web.Mail ' This one can't find it

Thanks

Carlos


Nov 20 '05 #1
2 1534
"Carlos" <cp****@yahoo.com> schrieb
I'm using VS 2003, im trying to write a windows app that will send an
emial bt when I import the Imports System.Web.Mail give me an error,
it finds Imports System.Web but not the mail part any ideas ?

Imports System.Web
Imports System.Web.Mail ' This one can't find it


You did not reference a library containing the namespace System.Web.Mail. At
the bottom of the documentation of the class you want to use there is the
assembly containing the class.
--
Armin

http://www.plig.net/nnq/nquote.html
http://www.netmeister.org/news/learn2quote.html

Nov 20 '05 #2
* "Carlos" <cp****@yahoo.com> scripsit:
I'm using VS 2003, im trying to write a windows app that will send an emial
bt when I import the Imports System.Web.Mail give me an error, it finds
Imports System.Web but not the mail part any ideas ?

Imports System.Web
Imports System.Web.Mail ' This one can't find it


Add a reference to "System.Web.dll" (project explorer -> "References" ->
context menu "Add Reference..." -> ...).

--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>
Nov 20 '05 #3

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

Similar topics

2
by: Job Lot | last post by:
I am trying to add a reference to System.Web.Mail in VB.NET application and getting an error saying Namespace or type 'Mail' for the Imports 'System.Web.Mail' cannot be found. How can I fix it...
1
by: Steven K | last post by:
Hello, Is there a way to declare imports so that they don't have to be declared both in Master Page.vb and the Content Page.vb? For example, I have the following in the Master Page.vb Imports...
3
by: | last post by:
I'm picking up an 'IMPORTS' error for a simple database insert based on two input entry boxes in my form? It says an 'Imports' statement must preceede any declarations....... is this perahps the...
1
by: wrytat | last post by:
I tried to import the System.Web.Mail namespace in a class file by typing "Imports System.Web.Mail", but there's syntax error shown. The error message goes like this, "Namespace or type 'Mail'...
5
by: Shapper | last post by:
Hello, I am working in a web site where all the code is placed in aspx.vb files. After a while I realized that many functions included in my aspx.vb files where common to all pages. I...
2
by: Kelvin | last post by:
Hello I am using web matrix develop a login page through Active Directory but I cannot figure out why it is giving me an error when importing system.directoryServices. Any help will do! thank ...
7
by: Bart_D | last post by:
Hi, Can anybody explain me what's the difference between for example: imports system.data implements ICallbackEventHandler inherits System.Web.UI.Page Thanks Bart
6
by: douglass_davis | last post by:
Is the whole System namespace automatically imported?
2
by: \Frank\ | last post by:
I have vs2005, XP, and framework 3.0 I try to run an example and the following: Imports System.Windows.Controls Imports System.Windows.Media Imports System.Windows.Media.Imaging
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:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
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...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.