Outlook Banter

Outlook Banter (http://www.outlookbanter.com/)
-   Outlook and VBA (http://www.outlookbanter.com/outlook-vba/)
-   -   Synchronization error event (http://www.outlookbanter.com/outlook-vba/92880-synchronization-error-event.html)

Twotone July 21st 09 09:21 AM

Synchronization error event
 
Because I don't want to be interrupted when Outlook is sending and receiving
emails, I have ticked the box to say "don't show me the progress dialog box".

The problem is that, when occasionally emails don't "go", I don't notice and
they sit in my Outbox until I close Outlook, which may be many hours later.

Ideally, therefore, I would like to capture the "synchronization error
event" and make a message appear on my screen. However, I understand that,
despite the fact that the Microsoft help screens imply otherwise, you can
only capture this event when you have initiated the synchronisation from
code. ie it can't be captured for a scheduled or user-initiated
synchronization.

Can anyone confirm if this is correct and if so, how else I might do what I
want to do?

Thanks in advance.

Ken Slovak - [MVP - Outlook] July 21st 09 02:46 PM

Synchronization error event
 
That's correct. There are no errors passed to you and no way to know the
start and end of an Outlook initiated send/receive (synch). As far as I know
there's absolutely no way to do what you want.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007.
Reminder Manager, Extended Reminders, Attachment Options.
http://www.slovaktech.com/products.htm


"Twotone" wrote in message
...
Because I don't want to be interrupted when Outlook is sending and
receiving
emails, I have ticked the box to say "don't show me the progress dialog
box".

The problem is that, when occasionally emails don't "go", I don't notice
and
they sit in my Outbox until I close Outlook, which may be many hours
later.

Ideally, therefore, I would like to capture the "synchronization error
event" and make a message appear on my screen. However, I understand that,
despite the fact that the Microsoft help screens imply otherwise, you can
only capture this event when you have initiated the synchronisation from
code. ie it can't be captured for a scheduled or user-initiated
synchronization.

Can anyone confirm if this is correct and if so, how else I might do what
I
want to do?

Thanks in advance.



Alan Moseley July 21st 09 03:14 PM

Synchronization error event
 
What about using a piece of code that calculates how long a mail has been
sitting in your outbox, and if it is over a specified value (depending upon
how often your send/receive is configured) then launch a messagebox. You can
then use a timer (initiated upon launching Outlook) or something to run this
routine every so often.
--
Alan Moseley IT Consultancy
http://www.amitc.co.uk

If I have solved your problem, please click Yes below. Thanks.


"Twotone" wrote:

Because I don't want to be interrupted when Outlook is sending and receiving
emails, I have ticked the box to say "don't show me the progress dialog box".

The problem is that, when occasionally emails don't "go", I don't notice and
they sit in my Outbox until I close Outlook, which may be many hours later.

Ideally, therefore, I would like to capture the "synchronization error
event" and make a message appear on my screen. However, I understand that,
despite the fact that the Microsoft help screens imply otherwise, you can
only capture this event when you have initiated the synchronisation from
code. ie it can't be captured for a scheduled or user-initiated
synchronization.

Can anyone confirm if this is correct and if so, how else I might do what I
want to do?

Thanks in advance.


Ken Slovak - [MVP - Outlook] July 21st 09 03:44 PM

Synchronization error event
 
Although any code that touches the item in Outbox or even handles
Outlook.Items will end up aborting the send on that item. You have to be
real careful of touching items using code that have been submitted to the
mail transport.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007.
Reminder Manager, Extended Reminders, Attachment Options.
http://www.slovaktech.com/products.htm


"Alan Moseley" wrote in message
...
What about using a piece of code that calculates how long a mail has been
sitting in your outbox, and if it is over a specified value (depending
upon
how often your send/receive is configured) then launch a messagebox. You
can
then use a timer (initiated upon launching Outlook) or something to run
this
routine every so often.
--
Alan Moseley IT Consultancy
http://www.amitc.co.uk

If I have solved your problem, please click Yes below. Thanks.



Twotone July 21st 09 04:35 PM

Synchronization error event
 
Thanks for the confirmation and the suggestion.

I think I will programmatically initiate a send/receive myself (ie in
addition to the scheduled ones) every two hours or something. Then I will be
able to use the onerror event to see if any emails haven't gone.

Best regards


"Ken Slovak - [MVP - Outlook]" wrote:

Although any code that touches the item in Outbox or even handles
Outlook.Items will end up aborting the send on that item. You have to be
real careful of touching items using code that have been submitted to the
mail transport.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007.
Reminder Manager, Extended Reminders, Attachment Options.
http://www.slovaktech.com/products.htm


"Alan Moseley" wrote in message
...
What about using a piece of code that calculates how long a mail has been
sitting in your outbox, and if it is over a specified value (depending
upon
how often your send/receive is configured) then launch a messagebox. You
can
then use a timer (initiated upon launching Outlook) or something to run
this
routine every so often.
--
Alan Moseley IT Consultancy
http://www.amitc.co.uk

If I have solved your problem, please click Yes below. Thanks.





All times are GMT +1. The time now is 03:35 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-2006 OutlookBanter.com