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

Outlook 2007 - Message stuck in Outbox



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old September 5th 09, 09:48 PM posted to microsoft.public.outlook.program_addins
John Erickson[_2_]
external usenet poster
 
Posts: 27
Default Outlook 2007 - Message stuck in Outbox

I asked this question before about Outlook 2000 and I've now discovered more
about it and I've also repro'ed the problem on Outlook 2007. What I
discovered is that if I make a call to Outlook::_Explorer-get_Selection
during the OnExplorerEvent for a SelectionChange() when my current selection
is a message in the outbox, that message becomes permanently stuck in the
outbox and will not be sent unless I pull it up in an inspector and hit send.
I'm accessing the current selection to pull some properties out of it to see
if it's a message I want to do something with, but I've commented out all my
get property code and discovered that just making the get_Selection call is
all that is needed to make this happen. It's easy enough to test this by
turning off the tools-options-Mail Setup-Send immediately when connected.
That flag causes messages to wait in the outbox until send/receive is hit.

I have a work around for it, but I don't like my work-around and I'm seeking
a better work-around. My work-around entails continuing to open the message
so that I can pull properties out of it and pulling the parent entry id out
of it first so that I can tell if it's a message sitting in the outbox. If
it's in the outbox, then before releasing the opened message I call submit
again. This work-around works, but it causes some undesireable effects.
Submitting the messages again triggers the ExplorerEvent SelectionChange()
event to happen again which sort of puts me in a loop because I then have to
open it again to see if it's in the outbox and re-submit it again.
Fortunately part of what I'm doing is happening in a different thread which
yields enough time for the message to eventually get sent when I hit
send/receive, but I get this wait cursor/normal cursor swapping thing
happening which doesn't look good. Plus I eat up a lot of processor time in
the eternal loop.

So, my question to you is... Is there another work-around I can use to fix
this? Perhaps instead of resubmitting it I simply need to change a message
flag or something? There must be something I can do besides re-Submit()ing it
that won't cause the SelectionChange event to trigger again and put me in a
loop.

John
Ads
  #2  
Old September 5th 09, 10:46 PM posted to microsoft.public.outlook.program_addins
John Erickson[_2_]
external usenet poster
 
Posts: 27
Default Outlook 2007 - Message stuck in Outbox

Never mind. I found a new work-around that works great. I now use
Outlook::_Explorer-get_CurrentFolder to determine if the current folder is
the Outbox and if it is I leave the current selection alone. Sorry for the
interruption.

John

"John Erickson" wrote:

I asked this question before about Outlook 2000 and I've now discovered more
about it and I've also repro'ed the problem on Outlook 2007. What I
discovered is that if I make a call to Outlook::_Explorer-get_Selection
during the OnExplorerEvent for a SelectionChange() when my current selection
is a message in the outbox, that message becomes permanently stuck in the
outbox and will not be sent unless I pull it up in an inspector and hit send.
I'm accessing the current selection to pull some properties out of it to see
if it's a message I want to do something with, but I've commented out all my
get property code and discovered that just making the get_Selection call is
all that is needed to make this happen. It's easy enough to test this by
turning off the tools-options-Mail Setup-Send immediately when connected.
That flag causes messages to wait in the outbox until send/receive is hit.

I have a work around for it, but I don't like my work-around and I'm seeking
a better work-around. My work-around entails continuing to open the message
so that I can pull properties out of it and pulling the parent entry id out
of it first so that I can tell if it's a message sitting in the outbox. If
it's in the outbox, then before releasing the opened message I call submit
again. This work-around works, but it causes some undesireable effects.
Submitting the messages again triggers the ExplorerEvent SelectionChange()
event to happen again which sort of puts me in a loop because I then have to
open it again to see if it's in the outbox and re-submit it again.
Fortunately part of what I'm doing is happening in a different thread which
yields enough time for the message to eventually get sent when I hit
send/receive, but I get this wait cursor/normal cursor swapping thing
happening which doesn't look good. Plus I eat up a lot of processor time in
the eternal loop.

So, my question to you is... Is there another work-around I can use to fix
this? Perhaps instead of resubmitting it I simply need to change a message
flag or something? There must be something I can do besides re-Submit()ing it
that won't cause the SelectionChange event to trigger again and put me in a
loop.

John

 




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
Outlook 2000 Message stuck in Outbox John Erickson[_2_] Add-ins for Outlook 6 August 26th 09 07:04 PM
HELP!!! Message stuck in outbox! Large message - other fixes don't seem to work! Bruce Outlook - General Queries 2 August 20th 07 01:30 PM
message stuck in outbox Phil Erlich Outlook - General Queries 1 August 17th 07 07:52 PM
Message stuck in Outbox Jaime Rodríguez Outlook - General Queries 1 February 5th 07 01:44 PM
Message stuck in Outbox Robert Serna Outlook - General Queries 7 August 15th 06 02:43 PM


All times are GMT +1. The time now is 09:06 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.