mapi

Filter Outlook appointments by category

谁说我不能喝 提交于 2019-12-12 11:16:29
问题 I have written this code to find the total duration of all appointments of a specified category within a specified time range: private readonly MAPIFolder _timing; private int CalculateTotalDuration(DateTime start, DateTime end, string category) { string filter = String.Format( "([Start] >= '{0:g}') AND ([End] <= '{1:g}') AND ([Categories] = '{2}')", start, end, category); return _timing.Items.Restrict(filter).Cast<AppointmentItem>(). Sum(appt => appt.Duration); } This code results in the

C# How to get the send of behalf email address in outlook add-in

吃可爱长大的小学妹 提交于 2019-12-12 09:38:45
问题 I'm trying to get the sender email address from email that is send using another email address. The sender as shows in outlook is ditribution-lists@domain.com on behalf of User Name [user.name@domain.com]. The MAPI object has a method SentOnBehalfOfName that returns "User Name" but not the email address. Does anyone know how to receive user.name@domain.com field? 回答1: using System; using System.Runtime.InteropServices; using System.Diagnostics; using System.Reflection; namespace Helpers {

Outlook Mapi access shared contacts

时间秒杀一切 提交于 2019-12-12 08:33:12
问题 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 contactObjects.Items) { ... import contact ... } In a second step I additionally want to import shared contacts. Only thing I found was using OpenSharedItem(sharedContacts.vcf) but I don't know the name of the file (shared item) I want to open. Does someone know

How to include Voting Button in Outlook Mail in VB.NET

别等时光非礼了梦想. 提交于 2019-12-12 05:38:32
问题 I'm fairly new to VB and I have created an email to be sent to a recipient which is coded in vb from the example; How to: Programmatically Create an E-Mail Item private void ThisAddIn_Startup(object sender, System.EventArgs e) { CreateMailItem(); } private void CreateMailItem() { Outlook.MailItem mailItem = (Outlook.MailItem) this.Application.CreateItem(Outlook.OlItemType.olMailItem); mailItem.Subject = "This is the subject"; mailItem.To = "someone@example.com"; mailItem.Body = "This is the

how to read mails from Exchange using mapi

瘦欲@ 提交于 2019-12-12 03:58:10
问题 I'm beginner to C#. Now I'm trying to develop a mail reading application that uses the MS Exchange native protocol (mapi) in C#. I have tried using EAgetmail.dll which is available over the internet. It was working fine but now I'm trying without using third party dll. Whether any codings are available for without using the Dll or any source code is available for your recommended dll. If you feel any possibilities to resolve my issue please share the codings or say me the website to refer.

MIME MAPI IConverterSession COMException on Activator.CreateInstance

a 夏天 提交于 2019-12-12 02:17:00
问题 I have been trying to use IConverterSession to convert from EML to MSG (MIME to MAPI), but I keep stumbling on COM errors. I use a C# MAPIMethods class to wrap IConverterSession (like the one found here : Save Mail in MIME format (*.eml) in Outlook Add-In). First, I had the problems of unknown clsid, solved with this post (https://blogs.msdn.microsoft.com/stephen_griffin/2014/04/21/outlook-2013-click-to-run-and-com-interfaces/). Now that the proper registry keys have been edited, I face a new

PST name-id-map specifics

杀马特。学长 韩版系。学妹 提交于 2019-12-12 02:07:58
问题 The spec for pst mentions that the name-id-map is one per pst. This map may contain several pidlid properties as defined in their spec MS-OXPROPS, but from the looks of it most of these pidlid properties appear to be message specific. How are properties for each message stored/managed in this name-id-map ? 回答1: No, the messages store the 4 byte property tags. E.g. PR_SUBJECT_A (which is not a named property and hence does not need to be mapped) is 0x0037001E. The map is needed only if a

Get email addresses of outlook profile, MAPI

末鹿安然 提交于 2019-12-12 00:44:24
问题 How does one get the email addresses from an outlook profile, using MAPI, in C++ ? The code for start(works ok): HRESULT hRes = S_OK; LPMAPISESSION lpSession = NULL; LPMDB lpMDB = NULL; LPMAPITABLE lptMsgStores = NULL; LPMAPITABLE spTable = NULL; std::wstring wProfileName; std::wstring wUsername; wUsername = L"user1@mymail.com"; wProfileName = L"TestProfile"; // Initiate MAPI. hRes = MAPIInitialize(0); // Logon to Extended MAPI session. hRes = MAPILogonEx(NULL, (LPTSTR)wProfileName.c_str(),

Java application to access MAILBOX using MAPI

强颜欢笑 提交于 2019-12-11 23:43:33
问题 I am trying to establish a connection between my mail server and a java program to parse the mail using protocol MAPI.. now the connection is working fine with a mock mailbox using IMAPS..but my mail server does not support MAPI..So is thr any option like JMAPI.. 回答1: It seems like Java Supports POP3 and IMAP very well out of the box. But for other protocols you can use one of the vendors found at JavaMail API - Third Party Products. I've had problems communicating with the Novell Groupwise

retrieving the default outlook email account using Redemption

和自甴很熟 提交于 2019-12-11 23:31:52
问题 just trying to work my way around using Redemption; I've got the following code to retrieve the RDOAccounts (Email accounts) from the default Profile: Profiles profiles = (Profiles)Activator.CreateInstance(Type.GetTypeFromProgID("ProfMan.Profiles")); Profile defaultProfile = profiles.DefaultProfile; //open a RDOSession for this profile RDOSession session = RedemptionLoader.new_RDOSession(); session.Logon(defaultProfile.Name); RDOAccounts accounts = session.Accounts; Where I'm stuck is trying