Work with Exchange Server 2016 using Aspose.Email for Java 17.8

Share on FacebookShare on Google+Tweet about this on TwitterShare on LinkedIn

aspose-email-for-javaAspose.Email for Java 17.8 has been published. Ported from its equivalent .NET version, this month’s release includes the same enhancements and improvements. Specifically, it provides complete support for working with Microsoft Exchange Server 2016 using EWS. It also supports conversion of email messages to HTML without embedding message resources in output file. For a complete list of all the changes included in this version, please visit the release notes section of Aspose.Email for Java API documentation.

Major Features

Support for Microsoft Exchange Server 2016: We are glad to share that Aspose.Email for Java API now provides complete support for working with Microsoft Exchange Server 2016 using its EWS client. This was earlier limited by certain features where the API didn’t support the functionality completely. With this month’s release, you can now get benefit of working with all the functionality of Exchange Server 2016.

Conversion of Messages without Embedding Resources in Output: Aspose.Email for Java API lets you convert messages to HTML. This month’s version further enhances this functionality by saving message resources (attachments, inline images, etc.) to user defined destination. This allows to save the message resources without embedding into the output html file. This is as illustrated in the following code sample.

MailMessage eml = MailMessage.load(fileName);

//final String outDir = "out path";
String outFileName = "EmailWithAttandEmbedded_out.html";

HtmlSaveOptions options = new HtmlSaveOptions();
options.setSaveResourceHandler(new SaveResourceHandler() {
    public void invoke(AttachmentBase attachment, String[] resourcePath) {
    	String dataDir = Utils.getSharedDataDir(ConvertEmailMessages.class) + "email/";;
        resourcePath[0] = attachment.getContentId();
}); + outFileName, options);

API Resources

We have detailed information available online for getting started with the Aspose.Email for Java API. These are:

To keep up with our news, you can follow us on Twitter or follow our Facebook page.

Leave a Reply