Results 1 to 10 of 10

Thread: email program

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    May 2005
    Posts
    162

    Resolved email program

    I was reading a post about a fellow that couldn't get his email program to work. Then out of curiousity I wanted to make my own. The problem is that vb.net is hating on all of my mail commands. it says they are not defined when it looks like they are built in. and ignore at the bottom the attachment part. I copied the code from an earlier post.
    Attached Images Attached Images  
    Last edited by citizenstitch; May 23rd, 2005 at 03:07 PM.

  2. #2
    Lively Member
    Join Date
    May 2005
    Posts
    90

    Re: email program

    You will need an Imports statement at the top, inporting the .NET library you want to use for SMTP. I'd find this for you, but I'm at school :x

  3. #3
    Hyperactive Member
    Join Date
    Apr 2003
    Location
    Three Rivers, MI
    Posts
    354

    Re: email program

    Did you do the Imports System.Web.Mail? You will need that to get email working for your Windows forms. You may also need to add a reference to it.

  4. #4

    Thread Starter
    Addicted Member
    Join Date
    May 2005
    Posts
    162

    Re: email program

    Quote Originally Posted by BukHix
    Did you do the Imports System.Web.Mail? You will need that to get email working for your Windows forms. You may also need to add a reference to it.
    no sir i didnt. I tried " Imports System.Web.Mail" but the last option was all about asp.

  5. #5
    Hyperactive Member
    Join Date
    Apr 2003
    Location
    Three Rivers, MI
    Posts
    354

    Re: email program

    It should look something like this

  6. #6
    Frenzied Member
    Join Date
    Nov 2003
    Posts
    1,489

    Re: email program

    The reference to add is System.Web.dll

  7. #7

    Thread Starter
    Addicted Member
    Join Date
    May 2005
    Posts
    162

    Re: email program

    this is what I get this:
    Attached Images Attached Images  

  8. #8
    Frenzied Member
    Join Date
    Nov 2003
    Posts
    1,489

    Re: email program

    try adding the reference to the references in solution explorer.

    What you are doing is something different. 'Importing' is simply a way to make typing code easier. You need to right-click on the node that says 'references' and then look for 'System.Web.dll' in the list that pops up. double click it and then select 'ok'. you're all set.
    Attached Images Attached Images  

  9. #9

    Thread Starter
    Addicted Member
    Join Date
    May 2005
    Posts
    162

    Resolved Re: email program

    hey thanks, it wasn't on that list. I had to rightclick and add item. all of those squigglies went away. hooray it works! thanks for that tidbit. how do I make a text box like this one so I can write emails in my program? also if I send from [email protected], the properties of that message still points directly to me. is there a way to mask it even better?

  10. #10
    Frenzied Member
    Join Date
    Nov 2003
    Posts
    1,489

    Re: email program

    there are some good sample programs on PlanetSourceCode for mailing stuff...I will send u one I have when i get home tonight

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