|
| |||||||||
| Tags: mapi |
![]() |
| | Thread Tools | Search this Thread |
|
#1
| |||
| |||
| Mapi error when Windows Mail is not running.
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 |
|
#2
| |||
| |||
| Re: Mapi error when Windows Mail is not running.
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 :-- "ScottV" <ScottV@discussions.microsoft.com> wrote in message news:C1D1DC05-79B5-448E-B60A-5EAFE978BFAA@microsoft.com... >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 |
|
#3
| |||
| |||
| Re: Mapi error when Windows Mail is not running.
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. -- Jim Pickering, MVP, Outlook Express https://mvp.support.microsoft.com/pr...8-1171988A62D6 Please deliver feedback to the newsgroup, so that others can be helped. "ScottV" <ScottV@discussions.microsoft.com> wrote in message news:C1D1DC05-79B5-448E-B60A-5EAFE978BFAA@microsoft.com... >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 |
|
#4
| |||
| |||
| Re: Mapi error when Windows Mail is not running.
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. "Jim Pickering" wrote: > 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. > -- > Jim Pickering, MVP, Outlook Express > https://mvp.support.microsoft.com/pr...8-1171988A62D6 > Please deliver feedback to the newsgroup, so that others can be helped. > > > "ScottV" <ScottV@discussions.microsoft.com> wrote in message > news:C1D1DC05-79B5-448E-B60A-5EAFE978BFAA@microsoft.com... > >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 > > |
|
#5
| |||
| |||
| Re: Mapi error when Windows Mail is not running.
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...en-us%3B315500 Also look in Windows Mail under Tools/Options/Security - is the box checked to "warn when applications attempt to send mail"? -- Jim Pickering, MVP, Outlook Express "ScottV" <ScottV@discussions.microsoft.com> wrote in message news:E4F8DA73-AB15-4686-B515-E42C93E37745@microsoft.com... >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. > > "Jim Pickering" wrote: > >> 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. >> -- >> Jim Pickering, MVP, Outlook Express >> https://mvp.support.microsoft.com/pr...8-1171988A62D6 >> Please deliver feedback to the newsgroup, so that others can be helped. >> >> >> "ScottV" <ScottV@discussions.microsoft.com> wrote in message >> news:C1D1DC05-79B5-448E-B60A-5EAFE978BFAA@microsoft.com... >> >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 >> >> |
|
#6
| |||
| |||
| Re: Mapi error when Windows Mail is not running.
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. "Jim Pickering" wrote: > 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...en-us%3B315500 > > Also look in Windows Mail under Tools/Options/Security - is the box checked > to "warn when applications attempt to send mail"? > -- > Jim Pickering, MVP, Outlook Express > > > > "ScottV" <ScottV@discussions.microsoft.com> wrote in message > news:E4F8DA73-AB15-4686-B515-E42C93E37745@microsoft.com... > >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. > > > > "Jim Pickering" wrote: > > > >> 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. > >> -- > >> Jim Pickering, MVP, Outlook Express > >> https://mvp.support.microsoft.com/pr...8-1171988A62D6 > >> Please deliver feedback to the newsgroup, so that others can be helped. > >> > >> > >> "ScottV" <ScottV@discussions.microsoft.com> wrote in message > >> news:C1D1DC05-79B5-448E-B60A-5EAFE978BFAA@microsoft.com... > >> >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 > >> > >> > > |
|
#7
| |||
| |||
| Re: Mapi error when Windows Mail is not running.
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. -- Jim Pickering, MVP, Outlook Express "ScottV" <ScottV@discussions.microsoft.com> wrote in message news:00A525DB-1D58-4A58-9291-2ABE58939EDD@microsoft.com... > 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. > > "Jim Pickering" wrote: > >> 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...en-us%3B315500 >> >> Also look in Windows Mail under Tools/Options/Security - is the box >> checked >> to "warn when applications attempt to send mail"? >> -- >> Jim Pickering, MVP, Outlook Express >> >> >> >> "ScottV" <ScottV@discussions.microsoft.com> wrote in message >> news:E4F8DA73-AB15-4686-B515-E42C93E37745@microsoft.com... >> >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. >> > >> > "Jim Pickering" wrote: >> > >> >> 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. >> >> -- >> >> Jim Pickering, MVP, Outlook Express >> >> https://mvp.support.microsoft.com/pr...8-1171988A62D6 >> >> Please deliver feedback to the newsgroup, so that others can be >> >> helped. >> >> >> >> >> >> "ScottV" <ScottV@discussions.microsoft.com> wrote in message >> >> news:C1D1DC05-79B5-448E-B60A-5EAFE978BFAA@microsoft.com... >> >> >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 >> >> >> >> >> >> |
|
#8
| |||
| |||
| Re: Mapi error when Windows Mail is not running.
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 "ScottV" <ScottV@discussions.microsoft.com> wrote in message news:00A525DB-1D58-4A58-9291-2ABE58939EDD@microsoft.com... > 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. > > "Jim Pickering" wrote: > >> 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...en-us%3B315500 >> >> Also look in Windows Mail under Tools/Options/Security - is the box >> checked >> to "warn when applications attempt to send mail"? >> -- >> Jim Pickering, MVP, Outlook Express >> >> >> >> "ScottV" <ScottV@discussions.microsoft.com> wrote in message >> news:E4F8DA73-AB15-4686-B515-E42C93E37745@microsoft.com... >> >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. >> > >> > "Jim Pickering" wrote: >> > >> >> 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. >> >> -- >> >> Jim Pickering, MVP, Outlook Express >> >> https://mvp.support.microsoft.com/pr...8-1171988A62D6 >> >> Please deliver feedback to the newsgroup, so that others can be >> >> helped. >> >> >> >> >> >> "ScottV" <ScottV@discussions.microsoft.com> wrote in message >> >> news:C1D1DC05-79B5-448E-B60A-5EAFE978BFAA@microsoft.com... >> >> >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 >> >> >> >> >> >> |
![]() |
|
| Thread Tools | Search this Thread |
| |
Similar Threads for: "Mapi error when Windows Mail is not running." | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Importing messages from MS Outlook into Windows Live Mail, MAPI problem | Prince$O$Persia | Windows Software | 8 | 16-10-2010 11:11 PM |
| MAPI error when attempting to import Outlook pst file to Windows Mail | Karen Kuhn | Windows Vista Mail | 7 | 14-12-2009 02:04 PM |
| Mapi 32 dll error with MYOB and windows mail | Joeb | Windows Vista Mail | 2 | 16-12-2008 07:07 PM |
| MAPI error trying to import .pst into Windows Mail | Frustrated User | Windows Vista Mail | 2 | 10-09-2008 11:52 AM |
| Word couldn't send mail because of a MAPI failure (Word, Outlook 2000) | Rojo26 | MS Office Support | 0 | 01-11-2007 12:58 PM |