none
Programmatically (VSTO, OOM) synchronize a folder in Outlook RRS feed

  • Question

  • Hi!

    There is a NameSpace.SendAndReceive method but this synchronizes all folders. I only want to synchronize a given folder (outbox). Is there any way to do this?

    Thanks

    Friday, September 6, 2019 4:06 PM

All replies

  • Not programmatically.

    Why are you trying to do that?


    Dmitry Streblechenko (MVP)
    http://www.dimastr.com/redemption
    Redemption - what the Outlook
    Object Model should have been
    Version 5.5 is now available!

    Friday, September 6, 2019 4:12 PM
  • I process an email (in offline mode) in the outbox.... then I make mail.send() but of course as the user is offline the email is not really sent.

    Is there any way (I don't think so) to do mail.send() but that this email gets really sent and if there are other emails in the outbox that they are not sent?

    thanks

    Friday, September 6, 2019 5:47 PM
  • Touching anything in the Outbox folder is a bad idea. Don't do that.

    If you want to process messages before they are sent, use Application.ItemsSend event


    Dmitry Streblechenko (MVP)
    http://www.dimastr.com/redemption
    Redemption - what the Outlook
    Object Model should have been
    Version 5.5 is now available!

    Friday, September 6, 2019 6:01 PM