|
|
|
date: Thu, 31 Jul 2008 11:06:18 +0100,
group: microsoft.public.platformsdk.mapi
back
MapiSendMail on Vista Fails if Outlook 2007 Running?
I have some code to send mail from an application via MAPI from managed code
as follows:
<DllImport("MAPI32.DLL")> _
Private Shared Function MAPISendMail(ByVal sess As IntPtr, ByVal hwnd
As IntPtr, ByVal message As MapiMessage, ByVal flg As Integer, ByVal rsv As
Integer) As Integer
End Function
m_lastError = MAPISendMail(New IntPtr(0), New IntPtr(0), msg, how, 0)
this code works fine on XpP and works when outlook is closed, but when
outlook is running i get
"General MAPI failure [2] "
any ideas?
Dave Clark
date: Thu, 31 Jul 2008 11:06:18 +0100
author: Dave Clark
RE: MapiSendMail on Vista Fails if Outlook 2007 Running?
I am having the same issue. Any ideas?
"Dave Clark" wrote:
> I have some code to send mail from an application via MAPI from managed code
> as follows:
>
>
> <DllImport("MAPI32.DLL")> _
> Private Shared Function MAPISendMail(ByVal sess As IntPtr, ByVal hwnd
> As IntPtr, ByVal message As MapiMessage, ByVal flg As Integer, ByVal rsv As
> Integer) As Integer
> End Function
>
> m_lastError = MAPISendMail(New IntPtr(0), New IntPtr(0), msg, how, 0)
>
> this code works fine on XpP and works when outlook is closed, but when
> outlook is running i get
>
> "General MAPI failure [2] "
>
> any ideas?
>
> Dave Clark
>
date: Thu, 28 Aug 2008 19:48:00 -0700
author: Jon Gross Jon
|
|