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
 
Hi Chris,

Is System.Web.dll referenced from your project?
 

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

Back
Top