mapi32.dll

  • Thread starter Thread starter Ray Heron
  • Start date Start date
R

Ray Heron

I have a procedure as part of a database system that calls MapiSendDocuments
from mapi32.dll thiis onlly appears to work when windows mail is closed. If
it is open the email generation fails. Is there an option in windows mail
that I have missed or is there a way to allow this remote function call to
work with windows mail open?
 
I think there is some sort of process exclusivity that isn't going to let
you do it unless you kill the winmail process that is already running. You
might be able to send impersonating another user and get around it that way,
but that's beyond my expertise.

steve
 
Beyond my expertise as well.

Thanks Steve


Steve Cochran said:
I think there is some sort of process exclusivity that isn't going to let
you do it unless you kill the winmail process that is already running. You
might be able to send impersonating another user and get around it that
way, but that's beyond my expertise.

steve
 
There seems to be some link with UAC. If I switch it off I dont have the
same problem.
 
Well, isn't that stupid? Thanks for the clarification. What if you run
your program as Admin? Does that fix it as well?

steve
 
Back
Top