mapi

Error while dynamically loading mapi32.dll

浪子不回头ぞ 提交于 2020-01-03 03:23:05
问题 Our application uses Simple MAPI to send e-mails. One of our clients has problems sending e-mail from a session on his terminal server. The mapi32.dll is loaded with a call to LoadLibrary which succeeds, but then our application tries to get the addresses of the functions MAPILogon , MAPILogOff , MAPISendMail , MAPIFreeBuffer and MAPIResolveName . The problem is that GetProcAddress fails for those functions with an ERROR_ACCESS_DENIED (code: 5) except for MAPIFreeBuffer . It looks like some

nicely reading outlook mailitem properties

依然范特西╮ 提交于 2019-12-30 03:24:07
问题 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 as Outlook.MailItem; Outlook.Attachments itt = item.Attachments; foreach (Outlook.Attachment t in item.Attachments) { textBox1.Text += t.PropertyAccessor.GetProperty("http://schemas.microsoft.com/mapi/proptag/0x370E001F"); } But I would much rather

Download location for MAPI33.dll?

一世执手 提交于 2019-12-29 08:02:32
问题 From where can I download MAPI33.dll. I got the link http://www.mapi33.adexsolutions.com/ from a site but it seems this is not correct. 回答1: You can find an older version here: http://g8.cx/mapi/ The newest version must be bought. I cite: The following code samples might be obsolete. They might not work with current version of the mapi33 dll, though they will still work using the out-of-date (but quite well-working and free) version of the mapi33 dll included in the samples zip file. To get

Best way to access Exchange using PHP?

感情迁移 提交于 2019-12-28 02:29:11
问题 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 leaning away from that. I will be running the site on IIS OR Apache (no preference) on Windows server 2008. A few things I would need to do include adding contacts to a given user's address book, sending emails as a given user and running reports on

Why are MailItems created in Sent Items folder shown in compose mode in Outlook 2013

走远了吗. 提交于 2019-12-25 09:14:16
问题 I have a Outlook 2013 addin that has a ItemSend Eventhandler that I can't get to work right. What it does is: Loops all recipients (to, cc, bcc) and creates a separate copy for each with only that email as recipient and sends them. Then deletes them from sent mail folder. This works fine. Creates one more copy, that has the original to, cc and bcc information. Uses the move-method to move it to the Sent items folder, because Save would put it in Outbox. It must not be actually sent, it should

MAPI Outlook object model Mailitem.senton > Mailitem.receivedtime, how is this possible?

丶灬走出姿态 提交于 2019-12-25 08:49:29
问题 I have been trying to figure this out as I am working on a deliverable for which I need to provide metadata for emails. As the title suggests when I am recording this metadata often the MailItem.Senton property will be greater than the MailItem.ReceivedTime property. How is this possible? 回答1: This is due to the fact that these values come from different places - the Date MIME header is created by the sender, while the received time is based on the receiving machine time. 来源: https:/

Open mails in outlook from C# using the protocol “mapi://”

…衆ロ難τιáo~ 提交于 2019-12-24 13:50:37
问题 I wish to execute a URL in the format mapi://{S-1-5-21-1626573300-1364474481-487586288-1001}/toto@mycompany.com($b423dcd5)/0/Inbox/가가가가곕갘객겒갨겑곓걌게겻겨곹곒갓곅갩갤가갠가 , which I got from searching via Windows Desktop Search. On Vista with Outlook 2007, this fails to open Emails if outlook is already open. Except sometimes, when it works for mysterious reasons. Below are some things I've tried in an attempt to get this to work: Executing it with Process.Start , or executing it with Process.Start via cmd

Gather Outlook contacts list

こ雲淡風輕ζ 提交于 2019-12-24 11:12:03
问题 Someone can tell me what API's to use to gather outlook contacts list ? I saw some people that asked similar thing used something called 'MPI', but i dont know how to use that functions set in C++. 回答1: A very nice example with code in C++ can be found here 回答2: It's not MPI but rather MAPI. It's COM-based. The documentation for it is here. 来源: https://stackoverflow.com/questions/10774329/gather-outlook-contacts-list

How to create “.msg” file without using outlook in mfc?

陌路散爱 提交于 2019-12-24 00:27:52
问题 I am using outlook 2010. i drag and drop single contact to desktop. contact created on desktop with ".msg" extensions. this file create in local folder using VC++/MFC 回答1: A few options: MSG file format is documented, so you can use straight OLE storage API. http://msdn.microsoft.com/en-us/library/cc463912(v=exchg.80).aspx Use Extended MAPI (OpenIMsgOnIStg). Use Redemption and its RDOSession.CreateMessageFromMsgFile method. All you have to do is call CreateMessageFromMsgFile, populate the

how to connect visual basic .net with microsoft exchange with free libraries posible?

情到浓时终转凉″ 提交于 2019-12-22 18:25:20
问题 Are there any free libraries for VB.net to use for connecting to a MS exchange server? I have found some paid ones but I'd rather not invest, so couln't find any free libraries.. I tried using java as a protocol layer for mapi but it wouldn't work 回答1: What are you trying to accomplish? I've had no trouble sending mail via my Exchange account using the regular SMTP client Public Shared Sub SendEmail(ByVal sFromAddress As String, _ ByVal sToAddress As String, _ ByVal sSMTPAddress As String, _