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.

Filter by
Sorted by
Tagged with
0 votes
1 answer
14 views

Are some MAPI named properties known and thus always return the same Tag when using GetIDsFromNames with MAPI_CREATE?

In my c# VSTO Outlook project I am using the GetNamesFromIDs to get a property name from one message and then adding it to a second message with GetIDsFromNames with the MAPI_CREATE flag set so that ...
darbid's user avatar
  • 2,577
0 votes
0 answers
108 views

Outlook MAPI IConverterSession->MAPIToMIMEStm returns the different stream output with or without PR_BODY when converting the same MSG File To EML

When trying to convert the MSG-File stored with Microsoft Outlook 15.0 to EML using Outlook 2016 MAPIToMIMEStm API returns different stream output when this API is called multiple times without ...
DJDev's user avatar
  • 1
2 votes
0 answers
47 views

How to get Outlook Property Names using extended MAPI GetNamesFromIDs

I am trying to view property names from an Outlook message using extended MAPI, ie the contents of a MAPINAMEID structure. I get a list of property tags for a message and then I am passing the below ...
darbid's user avatar
  • 2,577
0 votes
0 answers
88 views

Processing 7000 emails in Outlook using Excel/VBA - how to speed up?

I have an Outlook/Exchange folder with ~7000 emails. Every email has an msg attachment, in other words, emails that are forwarded as attachment. Or, an email inside an email. I'm extracting certain ...
Amedee Van Gasse's user avatar
0 votes
1 answer
12 views

How to get the "mailbox of origin" of email

let's suppose I copy a message from a shared mailbox [email protected] to a user mailbox [email protected]. Is there a way to detect programmatically that initially the email was created/received in ...
Victor Ivanidze's user avatar
0 votes
1 answer
65 views

How to convert .eml to .msg in java for free [duplicate]

Requirement We are calling API..The API need .msg file in request. Logic I have .eml file in my local diskspace, I want to convert into .msg in java for free. Code Snippet : String msg_file_path="...
preet leelaramani's user avatar
1 vote
1 answer
79 views

Delphi MapiSendMail returns MAPI_E_USER_ABORT

I´m calling MapiSendMail like this: lErrorCode := MapiSendMail(0, GetModuleHandle(nil), lMessage, MAPI_DIALOG or MAPI_LOGON_UI or MAPI_NEW_SESSION, 0); On my dev server (Win 2016) this returns 0 and ...
JonasK's user avatar
  • 159
0 votes
0 answers
61 views

Using added account in VSTO Outlook add-in before restart

We are developing a VSTO Outlook add-in and need to get an added account on the same Outlook run, not after restart. In C# properties it is not available. Using MAPI in C++ DLL we can get the accounts,...
Dmitry Kosovets's user avatar
0 votes
2 answers
139 views

Enable autoreply with certain date for Outlook

This VBA code is in Excel. The version is Office 365. The error raised is Type mismatch in SetProperty xxxxx0X661E001F and also 0x661F0040. I tried to change the strMessge to variant or change to ...
user21868878's user avatar
0 votes
0 answers
113 views

Why does mapi32.dll on Windows Server 2022 prevent calling CoInitializeSecurity within the same application?

I'm working on a project that uses mapi32.dll to access Microsoft Exchange Server from a Windows Server 2022 machine. I noticed that whenever CoInitializeSecurity is called within the same application ...
CodingSandpiper's user avatar
0 votes
0 answers
20 views

MAPISendMail - Can't find MAPI_DIALOG_MODELESS - C++

Language: C++ I am using MAPI_DIALOG_MODELESS in MAPISendMail to open outlook draft as a modeless dialog result = MAPISendMail(0, 0, &message, MAPI_DIALOG_MODELESS, 0); Although, after importing ...
Kshitij Sinha's user avatar
0 votes
0 answers
86 views

Sending via MAPI in .NET 6 results in error code 2 / general mapi failure

I try to generate mails in Outlook via the MAPI interface. The code is built and tested in VS2022 against multiple platforms ("net4.6.1;net6.0-windows;"). The unit tests I have set up are ...
Udontknow's user avatar
  • 1,472
0 votes
1 answer
44 views

Outlook ask for Pwd on Redemption - LogonHostedExchangeMailbox

Working with Redemption Dll version 6.3.0.6164 When I try to send a mail from a program, always appears a popup from Outlook asking for the password. And if i enter the pwd, they ask again, and again,...
user21371589's user avatar
0 votes
2 answers
89 views

How to extract Error-Code from REPORT.IPM.Note.NDR outlook object using Python

I am trying to extract certain details from an outlook mailbox. I want to extract bounced emails and get the error code of why these emails were bounced. I know with using regular expression I can ...
Sarah's user avatar
  • 1,361
0 votes
0 answers
22 views

How to set mapi properties FHaveWrittenTracking & UnifiedTracking

Can someone tell how to set mapi properties FHaveWrittenTracking & UnifiedTracking? And what are there property values?
amol surywanshi's user avatar
0 votes
1 answer
214 views

Redemption "Error: Microsoft Exchange is not available" after moving mailboxes to Exchange 2016

I'm facing troubles migrating some mailboxes from Exchange 2010 to Exchange 2016 because they are still used by an old application as part of some B2B flows. The application uses an old version of the ...
MrOperator's user avatar
0 votes
2 answers
35 views

VSTO: Get long-term EntryID from Microsoft.Office.Interop.Outlook.Folder query

I'm wondering if it's possible to get the long-term entry id from a Microsoft.Office.Interop.Outlook.Folder query. I can successfully query the table, but the entry id is always the short-term entry ...
Trecius Veil's user avatar
0 votes
0 answers
54 views

Redemption with O365 and Creating New Profiles

I'm so glad to see Redemption has survived into the 2020s! I used to use redemption many many years ago & LOVED it. I'm curious, how does it go with profile creation on Win11 / Outlook 365? I need ...
Tony Stephens's user avatar
0 votes
2 answers
48 views

Why is the EntryID Changing in VSTO? The MailItem is not moving folders

I'm writing some code in C# that matches a pattern from the subject and then ingests the email. To initialize my datastore, I go through the current Microsoft.Office.Interop.Outlook.Table. while (!...
Trecius Veil's user avatar
1 vote
1 answer
89 views

Recipients become zero after updating HTMLBody of occurrence Outlook Redemption

UPDATE Ultimate goal is to send the updated body to the existing recipients of the meeting occurrence. I'm trying to update HTMLBody of occurrence of existing meeting with number of recipients. After ...
Kvu's user avatar
  • 179
0 votes
1 answer
21 views

How to get MAPI Note Color in Outlook ost or pst files?

Need to mention that I'm using a 3rd party pst + ost reader and parser, so not using MS objects, just a how to query. Just wanna know how new Outlook 2021 works to store the MapiNoteColor? Long time ...
Stewart Brown's user avatar
0 votes
1 answer
243 views

IPM.Note.Secure vs IPM.Note.SMIME

Anyone knows what are these 2 here: https://learn.microsoft.com/nl-nl/office/vba/outlook/concepts/forms/item-types-and-message-classes IPM.Note.Secure :: Encrypted notes to other people IPM.Note....
Stewart Brown's user avatar
-1 votes
2 answers
60 views

Create IPM.OLE.CLASS Exception item in Outlook

I need to create an exception IPM.OLE.CLASS item in Outlook So need to delete or change one appointment instance of a recurring appointment Maybe I could not do it correctly, all have IPM.Note class :(...
Stewart Brown's user avatar
0 votes
1 answer
48 views

How to call the MAPI API IOlkAccountManager::SetOrder successfully

I wrote the following code in my application to set the order for the outlook accounts, but it crashes it. I can see API GetOrder successfully returning all configured accounts details (i.e. 3 ...
amol surywanshi's user avatar
1 vote
2 answers
344 views

python: win32com bulk save attachment error - server admin has limited number of items

I am looping through entryIds stored in a dataframe (loaded from a csv file) and accessing the messages by dispatching win32com.client to access Outlook MAPI and save email attachments to a local ...
bbpandagrl92's user avatar
0 votes
1 answer
104 views

How to display in Outlook, using VBA, a list of emails based on their EntryID (based on a list of EntryIDs stored in MS Access)

I have an Access DB that interacts with Outlook, including capturing the EntryID of selected emails as needed (which are stored in a table in Access) I have code that allows users to view any email ...
Jaspos's user avatar
  • 365
0 votes
0 answers
28 views

After saving email with an attachment into a depository, open it again, the attachment seems to have extra duplicate extension

We have an Outlook add-in that uses MAPI. But after we save an email with attachment such as excel file, "Sample.xlsx" into our depository, then reopen it from the depository, it shows the ...
P. Ng's user avatar
  • 1
0 votes
0 answers
65 views

Outlook Authentication issue for M365 outlook profile created programmatically via Profman

We have a solution to create a new default profile on end user's windows machine when the whole organization is moving to a new M365 tenant ( moving from old M365 tenant to a new M365 tenant). We are ...
windfly2006's user avatar
  • 1,703
0 votes
2 answers
74 views

What if I call GetProps immediately after SetProps in MAPI?

I have a question in MAPI. If I invoke SetProps for a property, then without invoking the SaveChanges function, I invoke GetProps immediately for that property, what will happen? Based on my own test, ...
alancc's user avatar
  • 463
0 votes
2 answers
81 views

Outlook deferredDeliveryTime goes to outbox and If application is closed it does not send

I am building an Outlook Add-in that is using the Outlook mailitem property deferredDeliveryTime in order to postpone the sending of the message. Everything works fine but I have realized that if I ...
Albin Gyllander's user avatar
1 vote
0 answers
62 views

PHP mapiHTTP interface

I'm trying to build a PHP mapiHTTP interface to solve RCA (https://testconnectivity.microsoft.com/) Exchange Server->Outlook connectivity test. I was able to create a valid ActiveSync response to ...
syncgw's user avatar
  • 21
0 votes
1 answer
28 views

PidlidPrivate in MAPI will not hide the message

I am checking PidlidPrivate property in MAPI. Based on https://learn.microsoft.com/en-us/office/client-developer/outlook/mapi/pidlidprivate-canonical-property, this property can hide the message. So I ...
alancc's user avatar
  • 463
0 votes
1 answer
19 views

Different values for PidlidPrivate property in MAPI?

I am studying a MAPI property called PidLidPrivate. I find it has different values in different official document. In https://learn.microsoft.com/en-us/office/client-developer/outlook/mapi/...
alancc's user avatar
  • 463
1 vote
1 answer
164 views

Can't delete email using MAPI

I've created Outlook 2019 add-in in C# and trying to use DeleteMessages method from MAPI to delete single email. However I'm always getting E_INVALIDARG as a result (look at code below). I've checked ...
hawthorne's user avatar
0 votes
2 answers
28 views

Outlook, Folder EntryId changes at runtime

I have an issue with sentfolder EntryId from Outlook. I work with sentfolder I have 2 Accounts. My account (dafault(Exchange)): all works perfect. The second account(additional(Exchange)) has: ...
Viktoriusrex's user avatar
0 votes
2 answers
289 views

MAPI_E_FAILONEPROVIDER error is thrown when the user is logged off and Outlook 2016/2019 is accessed in a windows application using MAPI

In a Windows application, calling OpenMsgStore function is throwing error when I am trying to open the default primary store for 'Outlook' 2016 Outlook profile only when the user is logged off. When ...
tejaswita kangralkar's user avatar
0 votes
1 answer
683 views

Drag and Drop email from Outlook causes exception in mso20win32client.dll

Seems around early August some users on several different RDS servers cannot drag and drop from Outlook to our app (Launcher.exe). Any thoughts on what may be causing this? Seems consistent for ...
VWP.CS's user avatar
  • 21
0 votes
2 answers
212 views

Is MailItem.EntryID the same for each user of shared mailbox?

We have a shared mailbox with multiple operators, collecting and inserting ERP sales orders. An order can be picked by different operators and be duplicated in ERP. Each e-mail has a unique EntryID, ...
IvanSTV's user avatar
  • 252
0 votes
0 answers
47 views

MS Outlook- Preview is not being generated for embedded messages

We download emails from the Exchange and store their properties and content on a file system. The opposite operation is to create an empty message and copy all the properties of the original email to ...
moszti's user avatar
  • 76
0 votes
3 answers
89 views

C# program that uses RDO only hangs when exiting if Outlook is not running

We have an internally written program in C# that use RDO in Outlook Redemption to create, modify, or delete contacts in an Outlook Contacts folder. This is Outlook 2019 connected to on-premise ...
REsguerra's user avatar
0 votes
2 answers
213 views

Is there a way to add an Outlook additional mailbox store?

I am trying to create a script that will recreate the outlook profile. Currently I am looking for a way to add additional mailboxes via the Outlook com object, since not all mailboxes can be added via ...
Lukas's user avatar
  • 138
0 votes
1 answer
132 views

Using MAPI to create a PST file with WinRM

I have the following PowerShell code which creates a PST file enter code Add-Type -assembly "Microsoft.Office.Interop.Outlook" $Outlook = New-Object -comobject Outlook.Application $namespace ...
paulpb's user avatar
  • 33
0 votes
0 answers
74 views

Outlook 365 crashes while sharing Inbox to other user. MAPI C++

I have Outlook plugin which is written to work with my server api. It's working perfectly fine with other outlook versions like Outlok 2016, 2019 and other versions. For outlook 365 when I try to ...
Mahesh Amarelia's user avatar
0 votes
1 answer
459 views

'Cannot save the attachment' error when retrieving Outlook email

As of today I am receiving an error when attempting to save email attachments from Outlook using Python and win32com library. This was previously working however since modifying the code to get only ...
jimiclapton's user avatar
0 votes
1 answer
382 views

Get "send as" or "on behalf of" information from Exchange server

As we know, there is a permission you can grant on the Exchange server that allows a user (foo) to send email in the name of as the permission granter (bar). On behalf of -> From: [email protected] on ...
aDoubleSo's user avatar
  • 1,128
0 votes
1 answer
91 views

Is there any other way besides MAPI to know two different email addresses belong to one Outlook account?

I am trying to integrate my application with Outlook. I have referred to Integrating IM applications with Office. I met an issue when an Outlook/Office account has two different email addresses, ...
Glider's user avatar
  • 15
0 votes
1 answer
278 views

Outlook MAPI throws error creating Teams Meeting from calendar

I have my own plugin written for Outlook MAPI in C++. We have our own server code and client interacts with it using SOAP Req/Resp. Now when we have Microsoft Teams installed on the PC. If someone ...
Mahesh Amarelia's user avatar
0 votes
2 answers
2k views

Converting EML (MIME) to MSG with python

I'm trying to convert EML file to MSG (Outlook) file using python. Using various examples I was able to gather this code, but well, it doesn't work. It creates a msg file but the file is unreadable by ...
paulpb's user avatar
  • 33
0 votes
1 answer
631 views

Access mailbox using MAPI or Outlook Redemption on Exchange 2016/2019

I have been asked to do some research on how to access a user's mailbox and execute some basic tasks(copy emails, create folders, delete folders/emails, move emails from one folder to another based on ...
yoxhall's user avatar
  • 42
0 votes
2 answers
630 views

Redemption on Windows Server 2019 with RDS (terminal server)

I'm experiencing a strange issue with Redemption in a RDS setup. When running Outlook as an ordinary user I get the following exception when attempting to connect to the session: System.Runtime....
SoerenH's user avatar

1
2 3 4 5
14