Forcing outlook sync

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I recently developed an CF 2.0 app for WM5.0 device which sends out emails
using Outlook Poom. I can succesfully get the emails placed into the Outlook
outbox and have them ready for the next scheduled "send and recieve" but I'd
like to actually have my custom application force a "send and recieve" right
after it places the message into the outbox so that it can be delivered
instantly. I have looked through all of hte Microsoft.WindowsMobile
namespace and was unable to find any way to get this done. Can anyone give
me some pointers?

Your help is much appreciated.
 
Figured this out, you can simply call:
MessagingApplication.Synchronize("accountname");
 
Back
Top