Click to See Complete Forum and Search --> : Email question
fuzz_64
Sep 16th, 2002, 12:25 PM
Hello! Does anyone have a tutorial anywhere that shows how to send/get email using VB.NET (I had this in vb 6, but upon upgrading to .net it stopped working). Uuencode and decode is a must unfortuneately!
SoftwareMaker
Sep 16th, 2002, 06:42 PM
The base class and namespace you need to zero in on is
System.Net
System.Web.Mail
If you think its easy to code with SMTP and CDO on VB6, this will definitely be a breeze !!!
fuzz_64
Sep 18th, 2002, 11:27 PM
Hey! Yeah, I finally discovered the system.web.mail thing, but didn't know about the other one until now. Thing is, if I try the one I just said, it works sometimes and sometimes it doesn't.
Sometimes I get an error saying that there is no such thing as system.web
If I go to the components thing, and go to the vb.net section, I see a lot of stuff that says
system.web.something here
so it makes me think that system.web is indeed there, but for some reason I just can't use it! :confused:
SoftwareMaker
Sep 19th, 2002, 12:07 AM
Hi,
I am not sure i know exactly what your problem is BUT if you cant import the System.Web namespace...it maybe because you dont have a reference pointing to the System.Web.DLL
Add a reference to your project, and point it to System.Web.DLL in the .NET Framework folder
fuzz_64
Sep 19th, 2002, 10:25 PM
Add a reference?? :eek:
Sorry! But I'm lost now! VB.NET seems so much different than VB6 :(
SoftwareMaker
Sep 20th, 2002, 12:33 AM
yes, VB.NET is much more different and better than vb6
Open up the project with VS.NET and under project. Click add reference, under the .NET Tab, select System.WEB.DLL add it to the project references.
In the sense, its not much different from VB6. VS.NET adds .NET assemblies while VB6 adds COM components.
fuzz_64
Sep 20th, 2002, 03:55 PM
AHHH SOOOOOOOOOOOO! Also.. AHA!!!!
That indeed does work for me. Thank you very much!:p
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.