You will need the URL for your Exchange Web Service, which is also the URL you decalare in the below Global Variable named strExchAsmx. I found that I had to delete the messages on my project because otherwise the mailbox would take too long to process and the application would eventually timeout, which can be adjusted but that is beyond the scope of this article. I left it intact so that you may uncomment this if deleting the messages is something you wanted to do. I have a portion of the completed code below that has logic to delete the messages it extracts attachments from but I have commented this portion out. ![]() This article covers the first part of that task because I found little information when trying to connect to EWS to extract attachments, at least for VB.NET. This is a small portion of an application I made that searches and extracts certain attachments from a specific Exchange 2007 mailbox and once extracted were read via StreamReader and their fixed length string contents were uploaded to a SQL instance. WinForms project and once you provide the appropriate values to the public variables in the uppermost portion of the code you should be able to run the application and see that it will extract all attachments from a defined Exchange mailbox to a local file. ![]() In this article I present a short form load event that you can place into a blank
0 Comments
Leave a Reply. |