Mapi error when Windows Mail is not running.

G

Guest

I am trying to send an E-Mail to the outbox using the MapiSendMail function
of the MAPI32.dll. If Windows Mail is already running, everything works fine.
If Windows Mail is not running, Windows Mail is launched silently, but
MapiSendMail returns MAPI_E_FAILURE.

Any ideas?

Thanks,
Scott
 
Z

Zack Whittaker

Hmm... try bugging this - http://www.vistabase.co.uk/welcome.php?bugreport.
It may actually require a reinstallation to get it fixed - but check the
feedback on the bug report on Connect first.

--
Zack Whittaker
» ZackNET Enterprises: www.zacknet.co.uk
» MSBlog on ResDev: www.msblog.org
» Vista Knowledge Base: www.vistabase.co.uk
» This mailing is provided "as is" with no warranties, and confers no
rights. All opinions expressed are those of myself unless stated so, and not
of my employer, best friend, Ghandi, my mother or my cat. Glad we cleared
that up!

--: Original message follows :--
 
J

Jim Pickering

Try looking in the Event Log for an error with ESENT in it. If you have
also installed Outlook, try this:

Try running the following command:

"C:\Program Files\Windows Mail\WinMail.exe" /reg

Check first that "WinMail.exe" is in that path and modify the path if
needed. See if that will fix the problem since a similar command for
"msimn.exe" (the old executable for Outlook Express) would often repair the
problem after an install of Outlook (which includes any downloads that might
update Outlook or Office by altering the default mail program). Let us know
if it works and you may need to reboot.
 
G

Guest

I tried adding C:\Program Files\Windows Mail to the PATH environment
variable, but it did not change the behavior.

Windows Mail is being launched, and I do get the "A program is attempting to
send the following e-mail message on your behalf" dialog box, but as soon as
I click on the Send button, I get the MAPI_E_FAILURE error code.
 
J

Jim Pickering

Is Hotmail (or MSN Live Mail) set as your default mail program? If so,
might look at this article:

PRB: You Receive the MAPI_E_FAILURE (2) MAPI Result Code If You Use Some
Hotmail Simple MAPI functions:
http://support.microsoft.com/default.aspx?scid=kb;en-us;315500

Also look in Windows Mail under Tools/Options/Security - is the box checked
to "warn when applications attempt to send mail"?
 
G

Guest

Windows Mail should be the default mail program. The Start menu displays it
the default mail program, and if Windows Mail is currently running, emails
are sent to Windows Mail.

I tried turning off the "warn when applications attempt to send mail?". The
prompt was not displayed, but the error still happened.
 
J

Jim Pickering

And there are no errors in the Event Log concerning ESENT? I find that hard
to believe. Have you looked at the Event Log to see since there are details
there that may be helpful to finding a solution.
 
S

Steve Cochran

There is currently a bug that does not allow one to save messages to the
various folders, but if its working with WinMail open and not when its
closed, then I'd check Event Viewer, as Jim indicated and see if there are
ESENT errors.

If not, then bug it. Or bug it anyway.

steve
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top