Move email using the Exchange Web Services Client

Is it possible to use the Exchange Web Services Client to move an email message from one exchange folder to another?

I wish to process emails in the inbox, then move them to an archive folder once processed.

Can you provide a code snippet to help?

Thanks
Craig

Hi Craig,

Thanks for considering Aspose.

I am sorry, ExchangeWebServiceClient currently does not have a method for moving an email message from one folder to another. I have logged this as “New feature” in our issue tracking system (ID: 17365). I will inform you when it becomes available.

Alternatively, you may use ExchangeClient.MoveItem() method to move an email from one folder to another.

Hi Saqib,

At work we use Exchange 2007, I cannot seem to connect to the exchange server using the ExchangeClient class, that is why I was using the ExchangeWebServiceClient.
I was not sure what URL to use for the ExchangeClient connect method, i tried similar entries as per the aspose samples, but had no success. The ExchangeWebServiceClient worked perfectly for me for connecting and processing.

Hi,

The general format is “http://MachineName/exchange/Username for connecting with ExchangeClient class. You may use https if it is required. Sample code can be viewed at http://www.aspose.com/documentation/.net-components/aspose.network-for-.net/getting-mailbox-information-from-exchange-server.html.

ExchangeClient class requires WebDav, so it should also be enabled on the Exchange Server.

The issues you have found earlier (filed as 17365) have been fixed in [this update](http://www.aspose.com/community/files/51/.net-components/aspose.network-for-.net/entry271668.aspx).

This message was posted using Notification2Forum from Downloads module by aspose.notifier.