Has anyone used System.Web.Mail ???

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I've referenced System.Web.Dll in my project and running Imports
System.Web.Mail in AssemblyInfo.vb but MailMessage and SmtpMail are still
"undefined".
 
Hi Roman,

Is this question a joke, this newsgroup is the last days full of
system.web.mail

When you did as you told than this should be possible.
\\\
Dim mymail As New MailMessage
///
I am curious why this does not go?

Cor

"(e-mail address removed)"
 
rroman,
Did you try to use MailMessage & SmtpMail in AssemblyInfo.vb? Or are you
attempt to use them in a different .vb file?

You need to put the Imports statement in each .vb file as you are trying to
use MailMessage & SmtpMail objects.

Hope this helps
Jay
 
I wish it were. I've been searching through the other system.web.mail post
and don't see anything like my problem. As I said before I have a reference
to the system.web.dll and I have Imports System.Web.Mail in AssemblyInfo.vb
but apprently that's not the correct place to put it because is not
recognizing MailMessage or SmtpMail, they are returning undefined and
undeclared. Look I'm new to this, forgive me if I'm asking a stupid question.
 
Thank you soooooo much, I'm new to this and was putting the loads statement
in the wrong place. Works like a charm now. Forgive my ignorance.
 

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