locked
Vista WinMail and MAPI problem RRS feed

  • Question

  • Hi everyone,

    We have a FoxPro 8 application that use the MAPI (MAPI32.dll) to send email and retrieve email and attachment file with Outlook Express. It has been working perfectly until we switch the platform to Vista and use WinMail.

     

    The email sending feature is still working fine but the retrieving mechanism is down. Everytime the code runs to fetch( ) and try to retrieve the messages, an error message will then pop up and shows "An error occurred communicating with your MAPI message system, if you are using Microsoft Outlook try checking the verify email address when sending messages checkbox in the system setup screen on the other tab"

     

    I have been working on this defect for a week and still have no clue. I search everywhere and can't seem to find any similar case. Please Please help!! Thanks!!

     

    here is the partial code:

    .Messages.FetchUnreadOnly = .T.
      .Messages.FetchMsgType = MSG_CIECA
      .Messages.FetchSorted = .T.
      .Messages.Fetch()   <--- it breaks here
      FOR i = 0 TO .Messages.MsgCount - 1
        ...

      ...
      ENDFOR

     

    -Jack

     

    Thursday, June 14, 2007 12:52 AM