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

How to prevent that Outlook is sending before my add-in is finished?



 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old March 10th 10, 10:40 AM posted to microsoft.public.outlook.program_addins
Kukulkan[_2_]
external usenet poster
 
Posts: 9
Default How to prevent that Outlook is sending before my add-in is finished?

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
 




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
Prevent Outlook from sending an email with a blank Subject Line Collector Dave Outlook and VBA 3 November 8th 09 01:24 PM
Possible to prevent sending an email without a category? [email protected] Outlook - General Queries 5 July 27th 07 11:19 AM
Getting outlook to not show finished tasks Shane C. Outlook - General Queries 1 June 4th 07 08:10 PM
how do you do you prevent outlook from sending copies Crisra13 Outlook - General Queries 1 November 17th 06 03:34 PM
why does outlook freeze untill it is finished looking for mail in need of answers Outlook - Using Forms 0 October 6th 06 01:47 AM


All times are GMT +1. The time now is 09:16 AM.


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.