K
Kukulkan
Hi,
I made an Outlook AddIn (OL2003 and OL2007) by using VB6 and
Redemption Objects. I need to manipulate the message before sending
(change Body, remove and add attachments). In most cases this works
fine, but in some rare cases there seem to occur problems. It looks
like OL is sending the message before my add-in is finished. This is
mainly observed on OL that is connected to an Exchange server.
In my code I need to call Mailitem.Save a few times. For example,
after removing attachments and before adding a new one (without this,
adding attachments will fail). I suppose that OL uses exactly this
moment to send the message. This results in messages that do not
contain the attachment that I like to add later.
Is there a way to prevent sending messages for a while? I want to be
shure that the message will get only sent after I finished my job? Any
idea?
Thanks,
Kukulkan
I made an Outlook AddIn (OL2003 and OL2007) by using VB6 and
Redemption Objects. I need to manipulate the message before sending
(change Body, remove and add attachments). In most cases this works
fine, but in some rare cases there seem to occur problems. It looks
like OL is sending the message before my add-in is finished. This is
mainly observed on OL that is connected to an Exchange server.
In my code I need to call Mailitem.Save a few times. For example,
after removing attachments and before adding a new one (without this,
adding attachments will fail). I suppose that OL uses exactly this
moment to send the message. This results in messages that do not
contain the attachment that I like to add later.
Is there a way to prevent sending messages for a while? I want to be
shure that the message will get only sent after I finished my job? Any
idea?
Thanks,
Kukulkan