Results 1 to 6 of 6

Thread: Email with VB???

  1. #1

    Thread Starter
    Member
    Join Date
    Apr 2000
    Posts
    48

    Red face

    When sending email with VB how can you use another email address instead of the default from email address? Please
    let me know.

    Thanks,
    Laura

  2. #2
    Hyperactive Member
    Join Date
    Nov 1999
    Location
    Leavenworth KS USA
    Posts
    482
    Robert Smith has some good info on his page (http://www.smithvoice.com/vbfun.htm). Look under "Getting the Word Out." Hope his example helps you!

  3. #3
    Member
    Join Date
    Jan 2000
    Location
    brooklyn
    Posts
    48

    use the shell

    you can use shell with the microsoft outlook exe
    like
    shell(c:/winnt/outlook.exe, blah..)

    I will post the code when I have a chance

  4. #4

    Thread Starter
    Member
    Join Date
    Apr 2000
    Posts
    48

    Unhappy

    Thanks Mongo and Sanford101! You tips did not help me. What I wanted to do is to replace the default "FROM:" email address with another email address.

    Thanks,
    Laura

  5. #5
    Lively Member
    Join Date
    Jan 1999
    Location
    Rochester NY, USA
    Posts
    93
    Uhm.. this really isn't going to answer your question but may change your need for this.. it is possible to change the "from" address but you will still be able to tell that it didn't come from that person. Someone who really doesn't look at it may be fooled but anyone who looks at the header will know exactly who it came from. You can telnet into a some mail relay servers and actually compose an email and fire it off with a bogus from address but the header will actually say the real from address. If your goal is for it to be impossible to tell who it really came from, it's not going to happen.

  6. #6
    Hyperactive Member
    Join Date
    Nov 1999
    Location
    Leavenworth KS USA
    Posts
    482

    Wink

    Swing and a miss, huh? Otay, howse 'bout...

    Set myOlApp = CreateObject("Outlook.Application")
    'Creates a new MailItem form
    Set myItem = myOlApp.CreateItem(olMailItem)
    'Set the "From" field
    myItem.SentOnBehalfOfName = "Mongo"


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