-
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?
-
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)
-
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?
-
I think thats the reason. If you use the outlook object, they will arrive in the send items folder.
-
I have done some stuff using the outlook object, but how do you attach attachments to a mail??
-
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?
-
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.
-
I have been doing the same so far its a no go on my end.