G
Gary
Hello,
I have an add-in VB 6 COM program that forwards emails using Outlook
2000. When a message is forwarded, it is sent to another email address
and then deleted. This is fine and works great. However, after
running the VB 6 code (in a VB Add-in project), I end up with a copy
of the message in my Sent Items folder and another copy of the same
message in the Deleted Items folder. Besides turning off the option
{Tools | Options | Preferences Tab | E-mail Options | uncheck Save
copies of messages in Sent Items folder), can this be done in code on
a per email basis and in code? I also need a way for Outlook to not
move a copy of the message to the Deleted Items folder. How can this
be programmatically done using the Outlook Object model?
In other words, when my COM Add-in program is running and if the user
selects to forward the email to another email address, I would like to
forward the email to another email address without putting a copy of
the message in the Sent Items folder or a copy of the message in the
Deleted Items folder. Normally, Outlook does this, but I am looking
for a way so that it doesn't do it (in the case when my add-in is
running).
The ideal solution would be to turn off the "Save copies of message in
Sent items folder" when an email is being forwarded with my add-in
program and then turn it back on when it is done. Likewise, my add-in
program would also need to delete the item in the Deleted items folder
or find a way to tell Outlook not to save a copy of the message in the
Deleted Items folder.
Does anyone know how to do this? I seem to remember reading that the
properties in (Tools | options | E-mail options) are not
programmatically available, but I could be wrong.
Thanks.
I have an add-in VB 6 COM program that forwards emails using Outlook
2000. When a message is forwarded, it is sent to another email address
and then deleted. This is fine and works great. However, after
running the VB 6 code (in a VB Add-in project), I end up with a copy
of the message in my Sent Items folder and another copy of the same
message in the Deleted Items folder. Besides turning off the option
{Tools | Options | Preferences Tab | E-mail Options | uncheck Save
copies of messages in Sent Items folder), can this be done in code on
a per email basis and in code? I also need a way for Outlook to not
move a copy of the message to the Deleted Items folder. How can this
be programmatically done using the Outlook Object model?
In other words, when my COM Add-in program is running and if the user
selects to forward the email to another email address, I would like to
forward the email to another email address without putting a copy of
the message in the Sent Items folder or a copy of the message in the
Deleted Items folder. Normally, Outlook does this, but I am looking
for a way so that it doesn't do it (in the case when my add-in is
running).
The ideal solution would be to turn off the "Save copies of message in
Sent items folder" when an email is being forwarded with my add-in
program and then turn it back on when it is done. Likewise, my add-in
program would also need to delete the item in the Deleted items folder
or find a way to tell Outlook not to save a copy of the message in the
Deleted Items folder.
Does anyone know how to do this? I seem to remember reading that the
properties in (Tools | options | E-mail options) are not
programmatically available, but I could be wrong.
Thanks.