send email problem

G

Guest

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
 
H

Herfried K. Wagner [MVP]

iwdu15 said:
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.
 
G

Guest

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
 
G

Guest

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.
 
H

Herfried K. Wagner [MVP]

Shawn said:
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.
 
H

Herfried K. Wagner [MVP]

AMercer said:
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'.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top