<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>HOWTO: Get Email Messages from Exchange to SharePoint</title><link>http://blogs.msdn.com/pcreehan/archive/2007/02/06/howto-get-email-messages-from-exchange-to-sharepoint.aspx</link><description>Many people ask about how to do this, so I thought I'd write up a sample. This sample basically searches the inbox of a user and then does an HTTP GET against the DAV:href to get the EML file and then does an HTTP PUT to upload it to a SharePoint document</description><dc:language>en</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>mhinze.com  &amp;raquo; Blog Archive   &amp;raquo; links for 2007-02-08</title><link>http://blogs.msdn.com/pcreehan/archive/2007/02/06/howto-get-email-messages-from-exchange-to-sharepoint.aspx#1715831</link><pubDate>Mon, 19 Feb 2007 17:03:22 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:1715831</guid><dc:creator>mhinze.com  » Blog Archive   » links for 2007-02-08</dc:creator><description>&lt;p&gt;PingBack from &lt;a rel="nofollow" target="_new" href="http://mhinze.com/links-for-2007-02-08/"&gt;http://mhinze.com/links-for-2007-02-08/&lt;/a&gt;&lt;/p&gt;
</description></item><item><title>re: HOWTO: Get Email Messages from Exchange to SharePoint</title><link>http://blogs.msdn.com/pcreehan/archive/2007/02/06/howto-get-email-messages-from-exchange-to-sharepoint.aspx#1811443</link><pubDate>Mon, 05 Mar 2007 21:39:38 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:1811443</guid><dc:creator>scoleman</dc:creator><description>&lt;p&gt;Currently I can recieve but in eml format, will this fix so I recieve as email to open in my outlook client as a regular email. I need to have this work, we are intergrating the document library to our exchange 2007. I was told I needed a mapi client installed on the sharepoint 2007 server. But not sure if any special configuration is involved. Any help would be great.&lt;/p&gt;
</description></item><item><title>re: HOWTO: Get Email Messages from Exchange to SharePoint</title><link>http://blogs.msdn.com/pcreehan/archive/2007/02/06/howto-get-email-messages-from-exchange-to-sharepoint.aspx#1863604</link><pubDate>Mon, 12 Mar 2007 13:03:53 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:1863604</guid><dc:creator>...</dc:creator><description>&lt;P&gt;mmm.. nice design, I must say..&lt;/P&gt;</description></item><item><title>re: HOWTO: Get Email Messages from Exchange to SharePoint</title><link>http://blogs.msdn.com/pcreehan/archive/2007/02/06/howto-get-email-messages-from-exchange-to-sharepoint.aspx#1874291</link><pubDate>Tue, 13 Mar 2007 20:14:07 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:1874291</guid><dc:creator>Patrick Creehan</dc:creator><description>&lt;p&gt;So the reason you need a MAPI client is that Outlook is a MAPI client and reads MAPI data from a MAPI store. MSG is the file format for MAPI data. These types of files would open in Outlook. It would involve a completely different code path to get the MAPI data from the store and save it as MSG. You can use MAPI Editor's source code available from this KB article (&lt;a rel="nofollow" target="_new" href="http://support.microsoft.com/kb/291794/"&gt;http://support.microsoft.com/kb/291794/&lt;/a&gt;) to do so. However, please note that MAPI code is not supported inline with .NET code. You would have to do this in C++ unmanaged code and wrap it in a COM+ component that you could call into from .NET. Outlook Object Model can also save messages as MSG files, but be careful again because Outlooks OMG (Object Model Guard) can prompt you with security prompts. Once you save the msg file to the disk, you can use the same UploadToSPS code I have above to push it into SharePoint. The reason I went after the EML (MIME content) files is that WebDAV is supported under .NET.&lt;/p&gt;
</description></item><item><title>re: HOWTO: Get Email Messages from Exchange to SharePoint</title><link>http://blogs.msdn.com/pcreehan/archive/2007/02/06/howto-get-email-messages-from-exchange-to-sharepoint.aspx#1919929</link><pubDate>Tue, 20 Mar 2007 18:00:32 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:1919929</guid><dc:creator>Nick</dc:creator><description>&lt;P&gt;We implement a VERY similar technique, although we found you have to loop read the bytes as on larger emails stuff gets lost/truncated. &amp;nbsp;See my blog entry for what I mean.&lt;/P&gt;
&lt;P&gt;&lt;A href="http://nickwhite.spaces.live.com/blog/" target=_new rel=nofollow&gt;http://nickwhite.spaces.live.com/blog/&lt;/A&gt;&lt;/P&gt;</description></item><item><title>re: HOWTO: Get Email Messages from Exchange to SharePoint</title><link>http://blogs.msdn.com/pcreehan/archive/2007/02/06/howto-get-email-messages-from-exchange-to-sharepoint.aspx#1920047</link><pubDate>Tue, 20 Mar 2007 18:31:23 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:1920047</guid><dc:creator>Nick</dc:creator><description>&lt;p&gt;You will find you'll need to read the email stream in chunks to avoid loosing stuff and ending up with a truncated email (especially true when there are attachments, my blog has code for our very similar implementation.&lt;/p&gt;</description></item><item><title>re: HOWTO: Get Email Messages from Exchange to SharePoint</title><link>http://blogs.msdn.com/pcreehan/archive/2007/02/06/howto-get-email-messages-from-exchange-to-sharepoint.aspx#2014028</link><pubDate>Mon, 02 Apr 2007 23:05:26 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:2014028</guid><dc:creator>Pritam</dc:creator><description>&lt;P&gt;Hi Patrick,&lt;/P&gt;
&lt;P&gt;Good article.&lt;/P&gt;
&lt;P&gt;What I am trying to do is write an event handler for an email enabled document library. So, when my document library receives the eml file, I want to open the file and find out who the sender is, the subject, cc fields, body and what the attachments are. Do you know of any way to parse eml files through code?&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;
&lt;P&gt;-pritam&lt;/P&gt;</description></item><item><title>re: HOWTO: Get Email Messages from Exchange to SharePoint</title><link>http://blogs.msdn.com/pcreehan/archive/2007/02/06/howto-get-email-messages-from-exchange-to-sharepoint.aspx#2163158</link><pubDate>Tue, 17 Apr 2007 16:21:10 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:2163158</guid><dc:creator>Patrick Creehan</dc:creator><description>&lt;p&gt;Hi Pritam. Yes, CDOSYS is an effective API for parsing eml files.&lt;/p&gt;
&lt;p&gt;&lt;a rel="nofollow" target="_new" href="http://msdn2.microsoft.com/en-us/library/ms527302.aspx"&gt;http://msdn2.microsoft.com/en-us/library/ms527302.aspx&lt;/a&gt;&lt;/p&gt;
</description></item><item><title>re: HOWTO: Get Email Messages from Exchange to SharePoint</title><link>http://blogs.msdn.com/pcreehan/archive/2007/02/06/howto-get-email-messages-from-exchange-to-sharepoint.aspx#5005432</link><pubDate>Thu, 20 Sep 2007 06:46:14 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:5005432</guid><dc:creator>DLS</dc:creator><description>&lt;p&gt;I'm new to webDAV. How would you use this in a project? &lt;/p&gt;</description></item><item><title>re: HOWTO: Get Email Messages from Exchange to SharePoint</title><link>http://blogs.msdn.com/pcreehan/archive/2007/02/06/howto-get-email-messages-from-exchange-to-sharepoint.aspx#9491755</link><pubDate>Fri, 20 Mar 2009 07:51:15 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9491755</guid><dc:creator>Saharathendral</dc:creator><description>&lt;P&gt;Hi Patrick Creehan,&lt;/P&gt;
&lt;P&gt;I am also working in SharePoint 2007. I am facing some problem with images while sending it thru mail. Our problem is, we are sending Emails (watch word - with image) to end users on daily basis. Currently we are doing it manually. Now we need to automate this using SharePoint designer work flow. The problem is background images are not displayed while getting the emails in outlook. There is no problem with the text. We are in hot stove now. Could you please help me to solve this? &lt;/P&gt;
&lt;P&gt;Thanks.&lt;/P&gt;
&lt;P&gt;Saharathendral&lt;/P&gt;</description></item><item><title>re: HOWTO: Get Email Messages from Exchange to SharePoint</title><link>http://blogs.msdn.com/pcreehan/archive/2007/02/06/howto-get-email-messages-from-exchange-to-sharepoint.aspx#9507530</link><pubDate>Wed, 25 Mar 2009 17:26:35 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9507530</guid><dc:creator>Patrick Creehan</dc:creator><description>&lt;p&gt;Hi Saharathendral,&lt;/p&gt;
&lt;p&gt;Are you getting the red X where your image should be or are you just seeing a plain text email?&lt;/p&gt;
&lt;p&gt;If you are seeing the red X, then it is most likely that your images are stored in a location that requires authentication to access. You should put them somewhere they can be accessed anonymously. You'll also want to look at these articles:&lt;/p&gt;
&lt;p&gt;&lt;a rel="nofollow" target="_new" href="http://msdn.microsoft.com/en-us/library/aa338201.aspx"&gt;http://msdn.microsoft.com/en-us/library/aa338201.aspx&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a rel="nofollow" target="_new" href="http://msdn.microsoft.com/en-us/library/aa338200.aspx"&gt;http://msdn.microsoft.com/en-us/library/aa338200.aspx&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;In Outlook 2003, there was an entirely different security mechanism in Tools/Options that governed how and if images were displayed in HTML emails.&lt;/p&gt;
&lt;p&gt;Patrick&lt;/p&gt;
</description></item><item><title>re: HOWTO: Get Email Messages from Exchange to SharePoint</title><link>http://blogs.msdn.com/pcreehan/archive/2007/02/06/howto-get-email-messages-from-exchange-to-sharepoint.aspx#9526192</link><pubDate>Wed, 01 Apr 2009 14:02:22 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9526192</guid><dc:creator>Saharathendral</dc:creator><description>&lt;p&gt;Hi Patrick,&lt;/p&gt;
&lt;p&gt;your reply helps us a lot to solve our problem. Thanks a lot. ;-)&lt;/p&gt;
&lt;p&gt;Saharathendral&lt;/p&gt;</description></item><item><title>re: HOWTO: Get Email Messages from Exchange to SharePoint</title><link>http://blogs.msdn.com/pcreehan/archive/2007/02/06/howto-get-email-messages-from-exchange-to-sharepoint.aspx#9553894</link><pubDate>Fri, 17 Apr 2009 09:00:13 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9553894</guid><dc:creator>Antti</dc:creator><description>&lt;p&gt;Hi Patrick!&lt;/p&gt;
&lt;p&gt;I'm not sure whether this is a good place to ask about this, so sorry if not, but here goes anyway. &lt;/p&gt;
&lt;p&gt;We have a &amp;quot;company-general&amp;quot; email address, that actually goes to just one person's mailbox. Currently the person then forwards the messages to whoever he guesses the message concerns. We would like to have the messages sent to this address be somehow automatically moved to a place in Sharepoint where other people could see them if they like and put alerts to get notification etc. Ideally this place could be a Sharepoint discussion forum so that the messages could be seen similar to as in an email reader.&lt;/p&gt;
&lt;p&gt;We could of course just forward the mails coming to the address to all those who want to receive them, but then the decision of whether to receive them or not would be more of an on-off decision, all or nothing. If the messages (even only text body would be enough) would automatically appear on a Sharepoint page, then the people could check them when they want (for example when they expect something concerning them to be inbound) and then ignore them in other times.&lt;/p&gt;
&lt;p&gt;Finally, in our location we don't have the Sharepoint server, it is managed by IT in another location so it would be best if something like this could be done without any actual extra coding, just utilizing existing features, adding a suitable web part or something similar. Do you think anything like this would be reasonably easily doable?&lt;/p&gt;
&lt;p&gt;-Antti&lt;/p&gt;</description></item><item><title>re: HOWTO: Get Email Messages from Exchange to SharePoint</title><link>http://blogs.msdn.com/pcreehan/archive/2007/02/06/howto-get-email-messages-from-exchange-to-sharepoint.aspx#9565123</link><pubDate>Thu, 23 Apr 2009 20:26:41 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9565123</guid><dc:creator>Roopesh</dc:creator><description>&lt;p&gt;I am getting the remote server returned an error 403 forbidden after it reach this line&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; // Send the SEARCH method request and get the &lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;// response from the server. &lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Response = (HttpWebResponse)Request.GetResponse();&lt;/p&gt;</description></item><item><title>re: HOWTO: Get Email Messages from Exchange to SharePoint</title><link>http://blogs.msdn.com/pcreehan/archive/2007/02/06/howto-get-email-messages-from-exchange-to-sharepoint.aspx#9565974</link><pubDate>Fri, 24 Apr 2009 06:20:32 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9565974</guid><dc:creator>Roopesh Das</dc:creator><description>&lt;p&gt;I am getting a 403 error here on this line&lt;/p&gt;
&lt;p&gt; // Get a reference to the request stream. &lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;RequestStream = Request.GetRequestStream();&lt;/p&gt;
&lt;p&gt;I have a https URI web email access&lt;/p&gt;
&lt;p&gt; string strRootURI = &amp;quot;&lt;a rel="nofollow" target="_new" href="https://webmail.hhs.gov/exchweb/bin/auth/owalogon.asp?url=https://webmail.hhs.gov/exchange&amp;amp;reason=0&amp;quot;;"&gt;https://webmail.hhs.gov/exchweb/bin/auth/owalogon.asp?url=https://webmail.hhs.gov/exchange&amp;amp;reason=0&amp;quot;;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;string strSPSRootURI = &amp;quot;&lt;a rel="nofollow" target="_new" href="http://samhsa-dmsg:48497/Email%20Import/&amp;quot;;"&gt;http://samhsa-dmsg:48497/Email%20Import/&amp;quot;;&lt;/a&gt;&lt;/p&gt;</description></item><item><title>re: HOWTO: Get Email Messages from Exchange to SharePoint</title><link>http://blogs.msdn.com/pcreehan/archive/2007/02/06/howto-get-email-messages-from-exchange-to-sharepoint.aspx#9844783</link><pubDate>Wed, 22 Jul 2009 16:19:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9844783</guid><dc:creator>Patrick Creehan</dc:creator><description>&lt;p&gt;Hi Roopesh,&lt;/p&gt;
&lt;p&gt;It looks like your value for strRootURI is incorrect - it should be directed at the mailbox you intend to log on to - not the logon page for owa. There are strategies you can employ to get the auth cookie from OWA and include it in your requests (&lt;a rel="nofollow" target="_new" href="http://support.microsoft.com/kb/891748/"&gt;http://support.microsoft.com/kb/891748/&lt;/a&gt;), but my sample above assumes OWA is configured for Basic or Windows authentication, not Forms Based Authentication.&lt;/p&gt;
</description></item><item><title>re: HOWTO: Get Email Messages from Exchange to SharePoint</title><link>http://blogs.msdn.com/pcreehan/archive/2007/02/06/howto-get-email-messages-from-exchange-to-sharepoint.aspx#9851675</link><pubDate>Wed, 29 Jul 2009 06:37:45 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9851675</guid><dc:creator>SharePoint</dc:creator><description>&lt;p&gt;I got a hold of Exchange email body (in html) through Exchange Impersonation. How do I convert it to plain text?&lt;/p&gt;</description></item><item><title>re: HOWTO: Get Email Messages from Exchange to SharePoint</title><link>http://blogs.msdn.com/pcreehan/archive/2007/02/06/howto-get-email-messages-from-exchange-to-sharepoint.aspx#9888746</link><pubDate>Fri, 28 Aug 2009 22:04:19 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9888746</guid><dc:creator>Patrick Creehan</dc:creator><description>&lt;p&gt;How did you get the html? (There may be a similar way to get the plain text.)&lt;/p&gt;
</description></item><item><title>re: HOWTO: Get Email Messages from Exchange to SharePoint</title><link>http://blogs.msdn.com/pcreehan/archive/2007/02/06/howto-get-email-messages-from-exchange-to-sharepoint.aspx#9910977</link><pubDate>Wed, 21 Oct 2009 22:40:34 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9910977</guid><dc:creator>sema</dc:creator><description>&lt;p&gt;just use discussion board as a library which creates a body field so you don't need to worry about reading eml file body.&lt;/p&gt;</description></item></channel></rss>