locked
Retrieve e-mail attachments from Exchange. RRS feed

  • Question

  • User-662994921 posted

    I am trying to save attachments from a specific e-mail on Exchange.  I am trying to find a code how to use WebDav?

    <?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p> </o:p>

    I also tried the following but it keeps logging me to my e-mail. I did make sure that Outlook was not running.

    oNs = oOutlook.GetNamespace("MAPI");

    oNs.Logon("usrename", "Password", false, true);

     

    Please Help

    Friday, March 27, 2009 10:28 AM

All replies

  • User-1181669224 posted

    There's a company - http://www.ornicusa.com that makes a really inexpensive product called InboxRules.

    I'm not sure what you're trying to do business wise, but you should at least take a look at the product because it's almost certainly cheaper than anything you can develop yourself.

     I'm not affiliated with the above company - just trying to help.

    Friday, March 27, 2009 10:52 AM
  • User-662994921 posted

    I am not sure why the following code is not logging in to the right account.

    oNs = oOutlook.GetNamespace("MAPI");

    oNs.Logon("usrename", "Password", false, true);

     

    What about WebDav any code example to save attachments?

    Friday, March 27, 2009 11:51 AM
  • User-662994921 posted

     

    I used WebDav see this link

     

    http://forums.thedailywtf.com/forums/t/4566.aspx

    Friday, March 27, 2009 1:16 PM
  • User-576103305 posted

    Alternatively, if you want things to be simplified, by doing just method calls and read attachments in a loop, take a look at Aspose.Network library. It provides classes for accessing Exchange server mailbox using WEBDAV and EWS (Exchange Web Services), check emails  and download emails to disk with attachments as eml and msg format. More details at http://www.aspose.com/documentation/.net-components/aspose.network-for-.net/managing-emails-on-exchange-server.html.

    Saturday, September 19, 2009 9:52 PM
  • User1437918436 posted

    Here are examples how to save messages as .eml and .msg file and also how to save attachments from Exchange server using WebDAV protocol:

    http://www.independentsoft.de/webdavex/tutorial/index.html

    Thursday, December 16, 2010 9:57 AM