PDA

View Full Version : Use VBA to CHECK/UNCHECK Mail account options "Send messages immediately"



highlowjack
03-10-2006, 09:27 AM
Hi

I am stumped.

I want to use VBA to CHECK/UNCHECK the "Send immediately when connected" mail option.

I am creating outlook tasks (note: these are TASKS not EMAILS) using vba and I want to force the sent tasks to the Outbox first.

Outlook 2000
Tools>Options>Mail Delivery tab>"Mail account options" section>"Send immediately when connected"

Killian
03-16-2006, 03:37 AM
Hi and welcome to VBAX :hi:

AFAIK, these application settings are not exposed to VBA in the Object model, so doing that with VBA isn't going to happen.

I thought that setting the syncobject withevents in a class might help - I can intercept the sync event but apparently the stop method only works with syncs that have been initiated in code (with the syncobject start method).

It appears to me that the bottom line is, with the checkbox set at some stage there will be a scheduled sync that you have now way of stopping programatically.

:mkay