EWS and Inline Attachments

I keep seeing a lot of questions on inline attachments being accessed by EWS being asked on our cases and on the internet. So, I would like to try to clarify how inline attachments work with different message bodies. There are really two types of inline attachments… at least it’s best to think of them…

0

Inline attachments used with EWS and Text, HTML, MHTML or MIME

Exchange Web Services has three different ways to set message body content when working with messages – setting the Text body, setting the html body or creating the message using email MIME (note that there are different types of MIME).  Images which are directly with HTML content are not supported.  HMTLM is an archival format…

1

Consider the full impact of Exchange Set-MailboxCalendarSettings and Set-CalendarProcessing before changing settings

Many messaging developers and Exchange administrators are not aware of possible effects of MailboxCalendarSettings settings.  While these options provide much needed capabilities which remove the need for specialized code, caution should be exercised as MailboxCalendarSettings can drastically affect any calendar related item in Exchange.  Some of the settings will trigger other settings be active when…

3

Sample: How to get the number of file attachments with EWS.

Since HasAttachments does not really give you the number of file attachments, we you will find that you need to work around it.  You can use code like that below to get the real count of file attachments on an item.       // —————————————————————————————–     // GetFileAttachmentsCount     //   Returns number of attachments on…

3

Example: Populate a ListView with a list of attachments using EWS

I thought it would be fun to blog another sample of getting a list of attachments using EWS.  So, here is a handly method for populating a list of attachments.       // —————————————————————————————–     // GetFileAttachmentsListLv     //   Sets a listview to the attachments on an item.     //   Returns number of attachments.    …

1

Example: Returning a list of attachments using EWS

Here is a sample on getting and returning a list of attachments on an item using Exchange Web Services (EWS).         //         //—————————————————————————————–         // GetAttachmentsList.         // Gets a list of file attachemnts on an item and puts them into <FileAttachmentType>.         // Returns the number of attchments found.         //         //…

1

mailto - limitations and paths forward

The mailto tag used in html content is used to load the default mapi client (email client) on the user’s box when its link is clicked and have it display a window for sending email.  The mailto link can contain basic information such as who the message, subject, etc.  There are however some limitations.    …

1

Howto: Read Attachments - Webdav: System.Net.HttpWebRequest vs System.Net.WebClient

I’ve run into issues with using a GET to read large attachments using HttpWebRequest.   Because of this, I use System.Net.WebClient instead.  Big attachments will have an error thrown back with HttpWebRequest, however it’s possible to GET the smaller ones.   So, since System.Net.WebClient seems to work just as good, I use it for getting attachments.  I…

2

Adding Inline Attachments with CDOSYS and System.Net.Mail.

In the following samples, I’m going to send an inline attachment using CDOSYS and System.Net.Mail (SNM). Lets say you have an html document with text above and below a jpg file and you want this document inside of a message you are going to send.  Below is the the basic HTML document.   Notice that img…

0

Exchange Protocol Documentation

Microsoft released preliminary protocol documentation for Exchange 2007 (as well as Microsoft Office 2007 and SharePoint Server) as part of Microsoft’s Interoperability Principles. The Exchange protocols are now publicly available on the Open Protocol Specifications section of MSDN in preliminary form for developers to review and provide feedback.  You can read more about the announcement…

0