Outlook 2007 - Message stuck in Outbox

Status
Not open for further replies.
J

John Erickson

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
 
J

John Erickson

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
 
Status
Not open for further replies.
Similar threads
Thread starter Title Forum Replies Date
D Outlook 2007 e-mail header- How to set font & font size in received message headers ? Using Outlook 2
J Outlook 2007 - Change Message Class for all Items in Folder Outlook VBA and Custom Forms 1
J Outlook 2007 Error sharing Calendar: Error while preparing to send sharing message Using Outlook.com accounts in Outlook 2
Jon Bakrley Outlook 2013 and Exchange 2007, Out of the office error message Using Outlook 8
J Outlook 2007 Rules & VBA: How to run a script on a report message (ReportItem) Using Outlook 14
F Outlook 2007 - Reading Pane Automatically Downloads First/Topmost Message Using Outlook 4
A Outlook 2007 message search results loses focus Using Outlook 7
R Lost Outlook 2007 message found in OWA Using Outlook 4
J Outlook 2007 Failure to Send Message<=Sending reported Error 0x80040201 Using Outlook 1
J [outlook-users] outlook 2007 Sp2: Error message to quit outlook Using Outlook 9
S default for new message (Outlook 2007) Using Outlook 0
L How can I delete stationery from Actions, New Mail Message Using in outlook 2007? Using Outlook 6
M Phone Message form in outlook 2007. How to start? Outlook VBA and Custom Forms 2
R Changing the default message form in Outlook 2007 Outlook VBA and Custom Forms 1
S Outlook 2007 error message using the TASK feature Using Outlook 6
W Transfer Outlook 2016 autocomplete file to Outlook 2007 Using Outlook 1
C Outlook 2007 Removing then adding account restores junk email processing Using Outlook 0
S Outlook 2007 crash linked to gdiplus.dll Using Outlook 0
S Outlook 2007 - Automatic purge fail Using Outlook 0
J outlook 2007 doesn't let me choose which .pst to search Using Outlook 2
D Outlook 2007 vs. Outlook 2010 -- ToDo Bar Using Outlook 0
D Outlook 2007 on 365 Using Outlook.com accounts in Outlook 2
S Macro for other actions - Outlook 2007 Outlook VBA and Custom Forms 23
S Verwendung von Outlook 2007 Using Outlook 0
A Arthur needs help with 2007 Outlook e-mail Using Outlook.com accounts in Outlook 3
M PST import from Outlook 2007 to 2010 - Address Book contacts all in 1 group Using Outlook 4
S outlook 2007 calendar search Using Outlook 6
B Migrate Outlook 2007 to Office 365 Using Outlook 3
X I have met my waterloo trying to resolve embedded graphics problem with outlook 2007 and now 2016 Using Outlook 1
R Outlook 2007 only loads some appointments Using Outlook 0
C Move Outlook 2007 to new PC with Outlook 365 Using Outlook 3
J Outlook 2007 Hide Messages Option not Available Using Outlook 2
S Outlook 2007 Calendar instant search problem. Windows 7 Using Outlook 4
S Outlook 2007 Calendar instant search problem. Windows 7 Using Outlook 0
B Server errors Outlook 2007 Using Outlook 1
S Reboot of frozen windows7 results in changed outlook 2007 settings Using Outlook 1
S Outlook 2007 printing wrong email address at top of page Using Outlook 8
M Configure outlook 2007 to accept digital signatures Using Outlook 2
D Outlook 2007 crashes when opening an email Using Outlook 2
R New chap saying hello and needing advice on Outlook 2007 thumbnails Using Outlook 3
icacream From Outlook 2007 to 2016 ! Using Outlook 9
vodkasoda Object could not be found Error in Outlook 2007 Outlook VBA and Custom Forms 5
S Outlook 2007: Address Cards allow entering text! Why? Using Outlook 3
S View Appointment in Text Wrap in Outlook 2007 Month Calendar View Using Outlook 0
L Outlook 2007 Separate the Send/Receive functions Using Outlook 2
M Outlook 2007 Contacts Glitch: Creating a new email Using Outlook 1
C Move from Outlook 2007 Enterprise (MOE) to Outlook Pro plus 2007 Using Outlook 1
J reinstalling Outlook 2007 asking for user name & password Using Outlook 14
P outlook addin unloaded in office 2007 Using Outlook 0
B Fonts in Outlook 2007 Using Outlook 4

Similar threads

Top