Where can I find Interop.MAPI.dll

  • Thread starter Thread starter Guest
  • Start date Start date
Philip,

CMM has sent today this today in this newsgroup as an answer to me.

I have seen that just Google on "Download msmapi32.ocx" gives direct a lot
of download file.
Maybe can you try this, than I have the idea that CMM will for sure help
you.

If we have than a complete documented sample (including where to get the
aciveX.) than we can set it as a sample on our website.

This is the text from CMM.
-----------------------------------------------------------------------------------------------------

I have confirmed personally that the mapi activex controls (msmapi32.ocx) do
indeed work with OE... in fact they work better with OE than with Outlook
because of Outlook's Object Model Guard.

MAPI (Mail API) was intended to be a "generic" interface into any "default"
e-mail program on the computer... not just MSMail or Exchange based ones.

(VB6 code using the two controls necessary)

MAPISession1.DownLoadMail = False
MAPISession1.SignOn
MAPISession1.NewSession = True

MAPIMessages1.SessionID = MAPISession1.SessionID

MAPIMessages1.Compose
MAPIMessages1.RecipAddress = "(e-mail address removed)"
MAPIMessages1.msgSubject = "My subject"
MAPIMessages1.msgNoteText = "bla bla bla"

MAPIMessages1.Send

MAPISession1.SignOff
MAPISession1.NewSession = False
 
I am not looking for msmapi32.ocx but for Interop.MAPI.dll.

I believe it should be installed on my system as office pia interop. But I
have both full install of vs.net 2005 en office 2003
 
Possibly installed with Visual Studio Tools For Office?

Or perhaps this PIA is installed as part of Collaboration Data Objects (CDO-
which is an optional component when you install Outlook) or the Outlook
Messaging Objects (also an optional component).... check Add/Remove
Programs -> Microsoft Office. It'll show you what components are installed.

Good luck.
 
Philip,
Adding a COM reference to "Microsoft CDO 1.21 Library" will create the
Interop.MAPI.dll "Interop Assembly" (IA?) for you. CDO 1.21 is an optional
install for Outlook.

Outlook 2003 has PIA (Primary Interop Assembly) that are optionally
installed with the product or as a download, while Outlook XP you can only
download its PIA.


NOTE: using "Microsoft CDO 1.21 Library" is not supported by Microsoft,
however I have had success in VS 2003 (.NET 1.x):
http://support.microsoft.com/?kbid=813349


Other Outlook MVPs have indicated that CDO does not work in VS 2005 (.NET
2.0) for her. However I have not migrated my project to collaborate her
findings...

--
Hope this helps
Jay [MVP - Outlook]
..NET Application Architect, Enthusiast, & Evangelist
T.S. Bradley - http://www.tsbradley.net


|I need Interop.MAPI.dll for a project, but where can I find this file?
 
Doh!
| NOTE: using "Microsoft CDO 1.21 Library" is not supported by Microsoft,
| however I have had success in VS 2003 (.NET 1.x):
| http://support.microsoft.com/?kbid=813349
That should be "using Microsoft CDO 1.21 with .NET is not supported by
Microsoft.

Using CDO 1.21 from COM clients (such as VB6 & VBScript) is supported...

--
Hope this helps
Jay [MVP - Outlook]
..NET Application Architect, Enthusiast, & Evangelist
T.S. Bradley - http://www.tsbradley.net


message | Philip,
| Adding a COM reference to "Microsoft CDO 1.21 Library" will create the
| Interop.MAPI.dll "Interop Assembly" (IA?) for you. CDO 1.21 is an
optional
| install for Outlook.
|
| Outlook 2003 has PIA (Primary Interop Assembly) that are optionally
| installed with the product or as a download, while Outlook XP you can only
| download its PIA.
|
|
| NOTE: using "Microsoft CDO 1.21 Library" is not supported by Microsoft,
| however I have had success in VS 2003 (.NET 1.x):
| http://support.microsoft.com/?kbid=813349
|
|
| Other Outlook MVPs have indicated that CDO does not work in VS 2005 (.NET
| 2.0) for her. However I have not migrated my project to collaborate her
| findings...
|
| --
| Hope this helps
| Jay [MVP - Outlook]
| .NET Application Architect, Enthusiast, & Evangelist
| T.S. Bradley - http://www.tsbradley.net
|
|
| ||I need Interop.MAPI.dll for a project, but where can I find this file?
|
|
 
Hi Philip,

I agree with Jay's point here. CDO 1.2x is not supported in managed code
currently. That means it may bring some unexpected behavior sometimes. So
it is better for you to select other approachs such as System.Web.Mail.

Thanks very much for your understanding.

Best regards,
Yanhong Huang
Microsoft Community Support

Get Secure! ¨C www.microsoft.com/security
Register to Access MSDN Managed Newsgroups!
http://msdn.microsoft.com/subscriptions/managednewsgroups/

This posting is provided "AS IS" with no warranties, and confers no rights.
 
Back
Top