GetAttachment doesn’t get Size of the attachment

For those, who don’t use Exchange Web Services API, but bank on its Requests and Responses.An email message has a attachment table that contains the attachments, and these in turn contain the properties such as PR_ATTACH_SIZE, PR_ATTACH_DATA_BIN etc. This means that email message doesn’t have any of the attachment properties on it.The GetItem could be used…

0

Personal Store (PST) without Outlook

Is there a way to access Personal Store (PST) wihtout having Outlook installed?Reason: Take out the Outlook dependency from PST 😉Further to SGRIFFIN’S blog:http://blogs.msdn.com/stephen_griffin/archive/2007/03/19/mapi-and-exchange-2007.aspxExchange 2007 onwards, MAPI isn’t included on the box and available as separate download:http://www.microsoft.com/downloads/details.aspx?FamilyID=e17e7f31-079a-43a9-bff2-0a110307611e&DisplayLang=enThe MSPST32.DLL shipped in this ExchangeMapiCdo download is the one of Exchange, that doesn’t provide support for Unicode.So, there…

1

How to get the body of the email message using Exchange 2007 Web services

Futher to SGriffin’s Weblog as below:http://blogs.msdn.com/stephen_griffin/archive/2007/02/09/exchange-web-services-and-internet-message-headers.aspxin order to access the body of an email message, the MAPI property PR_BODY_HTML (0x1013) could be used.However, we need to remember the property is binary in nature and base64 encoded.Here comes Convert.FromBase64String, System.Text.ASCIIEncoding to our rescue using which the ASCII of the body could be got, as below:    byte [] bAscii…

0

 getting inserted before the base64 encoded representation of the binary data of GIF image

When an application is creating a CDO[6.5.6756.0] Message and inserting a BodyPart of the type GIF image, and the base64 encoded representation of the binary data is initialized to the body part as shown below:Const c_Base64Sample = “R0lGODlhEAAOAPcAAAAAAIAAAACAAICAAAAAgIAAgACAgICAgMDAwP8AAAD/AP//AAAA//8A/wD”sFile = “sample.gif”sContentType = “image/gif”Set iPartAttach = iPartBody.AddBodyPartiPartAttach.ContentMediaType = sContentType & “; name=””” & sFile & “”””iPartAttach.ContentTransferEncoding = “base64”iPartAttach.Fields(“urn:schemas:mailheader:priority”)…

0

PropertyAccessor object in Outlook 2007 OOM

As mentioned in the http://support.microsoft.com/kb/266353, programmatically reading MAPI properties by using APIs such as Extended MAPI the PropertyAccessor object in the Microsoft Office Outlook 2007 object model is supported.Here’s how we do it in C++.#pragma warning(disable:4146) #import “C:\Windows\System32\stdole2.tlb” rename_namespace(“Outlook”)#import “C:\Program Files\Common Files\Microsoft Shared\OFFICE12\mso.dll” rename_namespace(“Outlook”)#import “C:\Program Files\Microsoft Office\OFFICE12\msoutl.olb” rename_namespace(“Outlook”) #pragma warning(default:4146) #include <stdio.h>#include <tchar.h> using namespace Outlook;…

0