Aspose.Email for Java 18.2 has been released. This release introduces the support for Metered Licensing using the Aspose.Email for Java API. It also provides fixes for user’s issues reported issues with the previous version of the API. For a detailed note on what is new and fixed, please visit the release notes section of API.
Support for Metered License with Aspose.Email for Java 18.2
We are glad to share the support for Metered Licensing in Aspose.Email for Java API. For those who are new to the term “Metered Licensing”, it is a form of consumptive licensing for which you pay royalties for the use of product every month. You can also visit the Metered Licensing FAQs section to know more about this type of licensing.
Using the Metered Licensing in API
Usage of Metered Licensing scheme is simple and can be used along with existing licensing method. The new licensing mechanism will be used along with existing licensing method. Those customers who want to be billed based on the usage of the API features can use the metered licensing.
Metered metered = new Metered(); // Access the SetMeteredKey property and pass public and private keys as parameters metered.setMeteredKey("*****", "*****"); // The path to the documents directory. String dataDir = Utils.getSharedDataDir(DisplayEmailInformation.class) + "email/"; // Load the document from disk. MailMessage eml = MailMessage.load(dataDir + "test.eml"); //Get the page count of document System.out.println(eml.getSubject());
We have detailed information available online for getting started with the Aspose.Email for Java API. These are: