It works fine on Win2K, Win2K3, and XP, whether or not Outlook is running
at the time MAPISendMail is called.
However, on Vista, MAPISendMail fails and returns error code 2
(MAPI_E_FAILURE)
if Outlook (2003 or 2007) is running when the call is made. If Outlook is
*not*
running, MAPISendMail works without a hitch.
Any ideas on what could be causing this or how to get more detailed failure
information?
== Rich Carreiro
rcar...@saba.com
I have the exact same problem. Does anybody have any resolution. I've tried:
Using MAPILogon to explicitly connect to a session. No effect.
Calling MAPIInitialize and saying 'hey, run in multithreaded mode.' No
effect.
Calling the MFC MAPI wrapper. Same problem.
Help.
Steve
"Allen Reeves" <Allen Ree...@discussions.microsoft.com> wrote in message
news:A4901C81-E82D-4D7B...@microsoft.com...
Matthias
Given what I know about the root cause of the problem in the blog post, it's
possible what you're seeing is just another manifestation. Or maybe it's
something completely different. :)
Steve
"JohnC" <Jo...@discussions.microsoft.com> wrote in message
news:8A0F4BD4-7994-46A2...@microsoft.com...
You can easily reproduce it. If you need test software, download and install our bug tracker: http://www.IssueView.com/IV50.exe. After you get it installed, rightClick on an issue in the grid and select email. On Vista, If Windows Email is open you'll get an error. If Windows Email isn't open, it will work. It always works on all other OSs.
EggHeadCafe - .NET Developer Portal of Choice
http://www.eggheadcafe.com
An additional note. I disabled UAC, and the problem went away. With
UAC enabled, it takes about 30 seconds to fail. Is sounds to me like
a prompt is being supressed when UAC is enabled. Assuming this is
true, how does one allow the UAC prompting to 'flow through'?