Results 1 to 8 of 8

Thread: What's Outlook's Prblem?!?!?!?

  1. #1

    Thread Starter
    Member
    Join Date
    Jun 2000
    Posts
    37

    Angry

    I'm trying to use MS Outlook to send mail within a VB program, it will send just fine, but I can't seem to get it to place messages into the sent items folder.

    Outlook is using a microsoft exchange server and not a dial-up account.

    Can anyone help me?

  2. #2
    Addicted Member
    Join Date
    Apr 2000
    Location
    Sheffield, England.
    Posts
    136
    As far as I know, it's dependent on the settings in your e-mail program - you can't force it to save copies/not save copies in your sent items.

    (at least, that's what I was told ages ago when I asked a similar question here)
    Visual Basic 6 Enterprise Edition + SP4

  3. #3

    Thread Starter
    Member
    Join Date
    Jun 2000
    Posts
    37
    Strange, Outlook does keep the messages in the sent items folder normally. Might it have anything to do with the fact that I'm using MAPI to connect to the exchange server?

  4. #4
    old fart Frans C's Avatar
    Join Date
    Oct 1999
    Location
    the Netherlands
    Posts
    2,926
    I think thats the reason. If you use the outlook object, they will arrive in the send items folder.

  5. #5
    Hyperactive Member
    Join Date
    May 2000
    Posts
    367
    I have done some stuff using the outlook object, but how do you attach attachments to a mail??

  6. #6

    Thread Starter
    Member
    Join Date
    Jun 2000
    Posts
    37

    Unhappy

    As it turns out, I need to keep using MAPI since some users might not be using outlook. I noticed in the MAPI send-mail form you can check an option to place the message in the sent folder. Is there any way (possibly through API calls) to set this option in code without the user having to check it each time?

  7. #7

    Thread Starter
    Member
    Join Date
    Jun 2000
    Posts
    37
    Yeah, maybe. I noticed that the MAPI Message object has a CopyTo method. This is supposed to copy the current message to a specified folder using the folder id. This looks like what I need but I don't know how to find the folder id. I've been searching MAPI references all over the place but to no avail.

  8. #8
    Hyperactive Member
    Join Date
    May 2000
    Posts
    367
    I have been doing the same so far its a no go on my end.

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