Results 1 to 7 of 7

Thread: Email question

  1. #1

    Thread Starter
    New Member
    Join Date
    Sep 2002
    Posts
    9

    Email question

    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!

  2. #2
    Hyperactive Member SoftwareMaker's Avatar
    Join Date
    Mar 2001
    Location
    Elbonia with Dilbert and Wally
    Posts
    322
    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 !!!
    William T
    Software Architect / Chief Software Developer
    Softwaremaker.Net Pte Ltd
    http://www.Softwaremaker.net

    *** Things are always the darkest before they go pitch black ***

  3. #3

    Thread Starter
    New Member
    Join Date
    Sep 2002
    Posts
    9
    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!

  4. #4
    Hyperactive Member SoftwareMaker's Avatar
    Join Date
    Mar 2001
    Location
    Elbonia with Dilbert and Wally
    Posts
    322
    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
    William T
    Software Architect / Chief Software Developer
    Softwaremaker.Net Pte Ltd
    http://www.Softwaremaker.net

    *** Things are always the darkest before they go pitch black ***

  5. #5

    Thread Starter
    New Member
    Join Date
    Sep 2002
    Posts
    9
    Add a reference??

    Sorry! But I'm lost now! VB.NET seems so much different than VB6

  6. #6
    Hyperactive Member SoftwareMaker's Avatar
    Join Date
    Mar 2001
    Location
    Elbonia with Dilbert and Wally
    Posts
    322
    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.
    William T
    Software Architect / Chief Software Developer
    Softwaremaker.Net Pte Ltd
    http://www.Softwaremaker.net

    *** Things are always the darkest before they go pitch black ***

  7. #7

    Thread Starter
    New Member
    Join Date
    Sep 2002
    Posts
    9
    AHHH SOOOOOOOOOOOO! Also.. AHA!!!!

    That indeed does work for me. Thank you very much!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width