Free Support Forum - aspose.com

Converting Exchange EmailMessage to Aspose MailMessage

I am getting emails from Exchange Server using Microsoft Exchange Web services and it is in format -

Microsoft.Exchange.WebServices.Data.EmailMessage

Now I want to process the email using Aspose Email object functionality.
How can I convert it from the Exchange EmailMessage format to Aspose MailMessage format?


Hi,


Thank you for your interest in Aspose Products.

I think this thread has already been replied but due to some reasons the previous replies are not shown.

I am afraid, there is no direct casting between the objects of Microsoft.Exchange.WebService.Data.EmailMessage and Aspose.Email.Mail.MailMessage. But if somehow you are able to save the Microsoft.Exchange.WebService.Data.EmailMessage on disk in any of the Aspose.Email supported formats (like Eml, Msg, Mht), then you can load the same message in Aspose.Email.Mail.MailMessage object.

Below is a link to several technical articles on how to manage email message files using MailMessage Class,
http://www.aspose.com/documentation/.net-components/aspose.email-for-.net/managing-email-message-files-with-mailmessage.html