Group:  Microsoft Outlook ยป microsoft.public.outlook.program_addins
Thread: Cancelling and closing a mailitem in itemsend event

Geek News

Cancelling and closing a mailitem in itemsend event
bstrum 6/18/2007 2:50:00 PM
I have seen posts and have also experienced first hand that there can be many
complications to making modifications to a mailitems subject, body and
attachments during an itemsend event. Is the proper method to make a copy of
the mailitem in itemsend, make mods to the copy and then send the copy? And
if so, how do you close and delete the original message? I am able to delete
it with no problem but the inspector windows stays open.

Thank you,

Benjamin Strum
ThinkTron Corporation
Re: Cancelling and closing a mailitem in itemsend event
"Michael Bauer [MVP - Outlook]" <mb[ at ]mvps.org> 6/19/2007 4:53:14 AM


I never had problems with that properties in ItemSend. However, I'd store
the item's EntryID and StoreID, cancel the sending process, and start a
timer with a delay of maybe 40ms; in that timer event make the modifications
and send the message again.

--
Viele Gruesse / Best regards
Michael Bauer - MVP Outlook
Organize Outlook email:
<http://www.vboffice.net/product.html?id=2006063&cmd=detail&lang=en&pub=6>

Am Mon, 18 Jun 2007 07:50:00 -0700 schrieb bstrum:

[Quoted Text]
> I have seen posts and have also experienced first hand that there can be
many
> complications to making modifications to a mailitems subject, body and
> attachments during an itemsend event. Is the proper method to make a copy
of
> the mailitem in itemsend, make mods to the copy and then send the copy?
And
> if so, how do you close and delete the original message? I am able to
delete
> it with no problem but the inspector windows stays open.
>
> Thank you,
>
> Benjamin Strum
> ThinkTron Corporation

Home | Search | Terms | Imprint Contact
Newsgroups Reader - provided by WiredBox.Net