By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,315 Members | 1,523 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,315 IT Pros & Developers. It's quick & easy.

HELP!: Where is my MailMessage class?

P: n/a
Environment: Windows XP, VS.Net 2003 Enterprise Architect Edition
(from an MSDN Universal subscription) The SMTP server is on a Windows
2003 system running Exchange 2003.

I am trying to write an app that needs to be able to send an email
message. I tried to add

Imports System.Web.Mail

into my app so I can send a message but it gives me the "Namespace or
type 'mail'..." error tip when I add that.

Did I overlook installing something? I am kind of stuck here until I
can generate a mail message.

TIA
Nov 20 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a
Hi,

Add a reference to system.web.dll

Ken
------------------
"Matthew Speed" <ms****@mspeed.net> wrote in message
news:sd********************************@4ax.com...
Environment: Windows XP, VS.Net 2003 Enterprise Architect Edition
(from an MSDN Universal subscription) The SMTP server is on a Windows
2003 system running Exchange 2003.

I am trying to write an app that needs to be able to send an email
message. I tried to add

Imports System.Web.Mail

into my app so I can send a message but it gives me the "Namespace or
type 'mail'..." error tip when I add that.

Did I overlook installing something? I am kind of stuck here until I
can generate a mail message.

TIA

Nov 20 '05 #2

P: n/a
Ken,

* "Ken Tucker [MVP]" <vb***@bellsouth.net> scripsit:
Add a reference to system.web.dll


.... and for further questions about errors see
<URL:http://www.systemwebmail.net/> ;-).

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

P: n/a
Thanks. I guess I assumed that VB.Net knew about all the classes out
of the box. I saw the reference to that dll in the help but since
typing system.web does give you options I though it was already in
there. Guess I thought wrong. Thanks for your help.
Hi,

Add a reference to system.web.dll

Ken
------------------

Nov 20 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.