We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Downloading a IPF.Task Message class

Trying to download a IPF.Task message class object using the following code which I can’t get to work:

// Create instance of EWSClient class by giving credentials

IEWSClient client = EWSClient.GetEWSClient(ExchangeUri.AbsoluteUri, UserAccount, PassWord);

Aspose.Email.Mail.Task task = client.FetchTask(itemId);
task.Save(FileName, TaskSaveFormat.Msg);

Hi Paul,


Thank you for posting your inquiry.

We have tested this issue with Exchange Server 2010 having 6 Task messages and it works without any issue. Can you please manually download and share your problematic sample files with us so that we can append these to our Exchange account and test at our end? We shall investigate the issue and assist you further.

I just ended up using EWS to pull them down in eml format. Was on a time crunch and had to provide something for a client. Thanks





PropertySet props = new PropertySet(ItemSchema.MimeContent);




var task = Microsoft.Exchange.WebServices.Data.Task.Bind(service, itemId, props);




using (FileStream fs = new FileStream(FileName, FileMode.Create, FileAccess.Write))


{


fs.Write(task.MimeContent.Content, 0, task.MimeContent.Content.Length);


}

Hi Paul,

Thank you for sharing your feedback. If you face the issue again with Aspose.Email API, please share your sample data with us so that we can investigate the issue and assist you further.