code doesnt work

  • Thread starter Thread starter chris
  • Start date Start date
C

chris

hi

i am trying to make a vb.net control using
Imports System.Web
Dim email As New System.Web.Mail.MailMessage

but it gives me the error
Type 'System.Web.Mail.MailMessage' is not defined.
why is that
however i am able to send messages using asp.net's createobject ("...")

why is that?
thanx
 
Back
Top