Questions tagged [mapi]

Messaging Application Programming Interface (MAPI) is a messaging architecture and a Component Object Model based API for Microsoft Windows. MAPI allows client programs to become (e-mail) messaging-enabled, -aware, or -based by calling MAPI subsystem routines that interface with certain messaging servers.

690 questions
93
votes
8 answers

Read MS Exchange email in C#

I need the ability to monitor for and read e-mail from a particular mailbox on a MS Exchange Server (internal to my company). I also need to be able to read the sender's e-mail address, subject, message body and download an attachment, if any. What…
vajarov
  • 1,115
  • 2
  • 9
  • 11
58
votes
9 answers

Best way to access Exchange using PHP?

I'm writing a CMS application in PHP and one of the requirements is that it must be able to interface with the customer's Exchange server. I've written up this functionality a few times before and have always used WebDAV to do it, but now I'm…
Bruce the Hoon
  • 1,666
  • 3
  • 18
  • 21
56
votes
4 answers

Reading e-mails from Outlook with Python through MAPI

I'm trying to write a short program that will read in the contents of e-mails within a folder on my exchange/Outlook profile so I can manipulate the data. However I'm having a problem finding much information about python and exchange/Outlook…
johnharris85
  • 17,264
  • 5
  • 48
  • 52
24
votes
5 answers

Add Library to Visual Studio 2008 C++ Project

I'm completely new to Visual Studio and I'm having some trouble getting a project started with Visual Studio 2008. I'm experimenting with MAPI, and I'm getting error messages like this when I go to build the project: "unresolved external symbol…
Chance
  • 988
  • 2
  • 13
  • 29
15
votes
2 answers

How to open new email with attachment in Windows 10 Mail App

I am trying to add a feature to my C# / .Net app for a user to email a file. When a user has Outlook installed, I can successfully use the Outlook interop APIs to do exactly what I want. However on a new Windows 10 install, I cannot work out how to…
Jon N
  • 1,439
  • 1
  • 18
  • 29
13
votes
8 answers

MAPI and managed code experiences?

Using MAPI functions from within managed code is officially unsupported. Apparently, MAPI uses its own memory management and it crashes and burns within managed code (see here and here) All I want to do is launch the default e-mail client with…
Ishmaeel
  • 14,138
  • 9
  • 71
  • 83
12
votes
1 answer

Python read my outlook email mailbox and parse messages

Possible Duplicate: Reading e-mails from Outlook with Python through MAPI I am completely new to Python and have been given the task to write a program that connects to my Microsoft Outlook mailbox, goes through all the emails and if the subject…
user1650464
  • 121
  • 1
  • 1
  • 4
11
votes
2 answers

Open Outlook mail Item using EntryID, StoreID, and / or PR_ENTRYID

NOTE: I'm using VBA and Office 2007. (I would use C#, but the project parameters don't allow this) I'm attempting to find some method in Outlook, or an API, that will allow me to open an Outlook mail item by providing either the Outlook EntryID or…
Kyland Holmes
  • 111
  • 1
  • 1
  • 3
9
votes
1 answer

How to declare that my Simple MAPI provider DLL is Unicode and supports MapiSendMailW?

I have written a simple MAPI provider DLL that implements the following functions: MapiLogOn MapiLogOff MapiSendMail MapiSendDocuments MapiFindNext MapiReadMail MapiSaveMail MapiDeleteMail MapiFreeBuffer …
Maxim Masiutin
  • 3,991
  • 4
  • 55
  • 72
8
votes
1 answer

Modifying Microsoft Outlook contacts from Python

I have written a few Python tools in the past to extract data from my Outlook contacts. Now, I am trying to modify my Outlook Contacts. I am finding that my changes are being noted by Outlook, but they aren't sticking. I seem to be updating some…
Oddthinking
  • 24,359
  • 19
  • 83
  • 121
8
votes
4 answers

Outlook Mapi access shared contacts

I want to import contacts from Outllok via Mapi. First step with standard contact is no problem: MAPIFolder contactObjects = outlookObj.Session.GetDefaultFolder(OlDefaultFolders.olFolderContacts); foreach (ContactItem contactObject in…
Tobias
  • 2,945
  • 5
  • 41
  • 59
8
votes
1 answer

Sending emails to multiple recipients using vbscript

My vbscript sends email to automatically to a recipient, but does anyone know how to add more than one recipient to it? ... Dim ToAddress Dim FromAddress Dim MessageSubject Dim MyTime Dim MessageBody Dim MessageAttachment Dim ol, ns, newMail MyTime…
duper
  • 243
  • 3
  • 6
  • 15
7
votes
1 answer

nicely reading outlook mailitem properties

I am writing a plugin for outlook 2007 and i would like to read a property of a MailItem. In particular i'd like to know all the content-types of my attachments. Now the way i do this now is something like this: Outlook.MailItem item = OutlookItem…
Bram
  • 765
  • 1
  • 6
  • 14
7
votes
1 answer

Deadlock when logging of using Simple MAPI TEmail component

We are experiencing an intermittent deadlock using a freeware MAPI/SMAPI implementation. I doubt the implementation is at fault but perhaps changing the logon flags to MapiLogon or a configuration setting on Exchange could resolve this. Result :=…
Lieven Keersmaekers
  • 57,207
  • 13
  • 112
  • 146
7
votes
2 answers

Microsoft.Office.Interop.Outlook.Items.Restrict - not working correctly

I can pull email, walk through them, mark them as read, even sort. However, when I tried to restrict by ReceivedTime, it doesn't seem to be working. I get nothing back no matter what date/time I put in. I know ReceivedTime is valid based on the…
Chizl
  • 2,004
  • 17
  • 32
1
2 3
45 46