Consulting

Results 1 to 2 of 2

Thread: Use VBA to CHECK/UNCHECK Mail account options "Send messages immediately"

  1. #1

    Use VBA to CHECK/UNCHECK Mail account options "Send messages immediately"

    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"

  2. #2
    VBAX Master Killian's Avatar
    Joined
    Nov 2004
    Location
    London
    Posts
    1,132
    Location
    Hi and welcome to VBAX

    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.

    K :-)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •