Home All Groups Group Topic Archive Search About
Author
24 Feb 2006 12:04 AM
iwdu15
hi, ive read all the past posts about sending emails in VS 2003 and 2005 but
i have a slight problem. i try to import "System.Web.Mail" but it cannot find
that class in VS 2003 nor VB Express 2005.  Am i missing somethign here? i
have the system.web.dll and the system.web class but i dont have the Mail
subclass
--
-iwdu15

Author
24 Feb 2006 12:09 AM
Herfried K. Wagner [MVP]
"iwdu15" <jmmgoalsteratyahoodotcom> schrieb:
> hi, ive read all the past posts about sending emails in VS 2003 and 2005
> but
> i have a slight problem. i try to import "System.Web.Mail" but it cannot
> find
> that class in VS 2003 nor VB Express 2005.  Am i missing somethign here? i
> have the system.web.dll and the system.web class but i dont have the Mail
> subclass

'System.Web.Mail' is a namespace, not a class.  This namespace contains
further classes.

--
M S   Herfried K. Wagner
M V P  <URL:http://dotnet.mvps.org/>
V B   <URL:http://classicvb.org/petition/>
Author
24 Feb 2006 12:09 AM
Shawn
Is this an ASP.NET page or Windows Forms?

Show quoteHide quote
"iwdu15" <jmmgoalsteratyahoodotcom> wrote in message
news:8D2D7A41-57E4-44A3-843A-9CA0BA095599@microsoft.com...
> hi, ive read all the past posts about sending emails in VS 2003 and 2005
> but
> i have a slight problem. i try to import "System.Web.Mail" but it cannot
> find
> that class in VS 2003 nor VB Express 2005.  Am i missing somethign here? i
> have the system.web.dll and the system.web class but i dont have the Mail
> subclass
> --
> -iwdu15
Author
24 Feb 2006 12:36 AM
iwdu15
my bad, thanks for the clarification on terms, its a windows form....im um
using VS 2003 and it doesnt seem to be there at all
--
-iwdu15
Author
24 Feb 2006 12:22 PM
Herfried K. Wagner [MVP]
"Shawn" <shawn.cam***@ccci.org> schrieb:
> Is this an ASP.NET page or Windows Forms?

This should not make a difference, "System.Web.dll" can be referenced in
both Windows Forms projects and Web Forms projects.

--
M S   Herfried K. Wagner
M V P  <URL:http://dotnet.mvps.org/>
V B   <URL:http://classicvb.org/petition/>
Author
24 Feb 2006 1:09 AM
AMercer
> hi, ive read all the past posts about sending emails in VS 2003 and 2005 but
> i have a slight problem. i try to import "System.Web.Mail" but it cannot find
> that class in VS 2003 nor VB Express 2005.

Add a reference to System.Web.
Use System.Web.Mail.SmtpMail.Send.
Author
24 Feb 2006 1:13 AM
iwdu15
that works, thanks a lot
--
-iwdu15
Author
24 Feb 2006 12:23 PM
Herfried K. Wagner [MVP]
"AMercer" <AMer***@discussions.microsoft.com> schrieb:
>> hi, ive read all the past posts about sending emails in VS 2003 and 2005
>> but
>> i have a slight problem. i try to import "System.Web.Mail" but it cannot
>> find
>> that class in VS 2003 nor VB Express 2005.
>
> Add a reference to System.Web.
> Use System.Web.Mail.SmtpMail.Send.

In .NET 2.0 I suggest to use 'System.Net.Mail' instead of 'System.Web.Mail'.

--
M S   Herfried K. Wagner
M V P  <URL:http://dotnet.mvps.org/>
V B   <URL:http://classicvb.org/petition/>