A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Add-ins for Outlook
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Cancelling and closing a mailitem in itemsend event



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old June 18th 07, 04:50 PM posted to microsoft.public.outlook.program_addins
bstrum
external usenet poster
 
Posts: 19
Default Cancelling and closing a mailitem in itemsend event

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
  #2  
Old June 19th 07, 06:53 AM posted to microsoft.public.outlook.program_addins
Michael Bauer [MVP - Outlook]
external usenet poster
 
Posts: 1,885
Default Cancelling and closing a mailitem in itemsend event



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:

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

 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
MailItem Close Event Robert Morley Outlook and VBA 8 April 19th 07 10:03 PM
Adding a recipient from the "ItemSend" event J Outlook and VBA 1 February 27th 07 07:23 PM
Write RTF-Body on ItemSend event Thomas Add-ins for Outlook 2 February 12th 07 12:22 PM
ItemSend event differences betweek W2K & WXP Lionel H Outlook and VBA 4 October 20th 06 04:16 PM
Cancelling Outlook.Application.ActiveExplorer.Close event? Nathan Add-ins for Outlook 1 September 8th 06 08:14 PM


All times are GMT +1. The time now is 01:56 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.