send email problem

  • Thread starter Thread starter Guest
  • Start date Start date
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
 
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.
 
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
 
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.
 
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.
 
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'.
 
Back
Top