Licensing
Evaluate Aspose.Email
You can download Aspose.Email for Python via .NET free of cost for evaluation. The evaluation version provides almost all functionality of the product with certain limitations. The same evaluation version becomes licensed when you purchase a license and add a couple of lines of code to apply the license.
If you want to test Aspose.Email without evaluation version limitations, you can also request a 30 Day Temporary License. Please refer to How to get a Temporary License?
Evaluation Version Limitations
Evaluation version of Aspose.Email (without a license specified) provides full product functionality except some evaluation limitations.
- License.txt file is added to the message file saved using Aspose.Email
- Only 50 emails can be extracted from a folder in PST file
- Only 3 attachments as well as inline images can be extracted from an MSG file
- Max number of processed attachments in CFB format is 1
- Max number of processed recipients in CFB format is 1
- Adds “Evaluation Message” to the subject when saving in CFB, EML or MSG formats
- The end date can’t be later than 31-12-2004 in the
generate_occurrences()method of the recurrence pattern. This allows you to test the product meaningfully, yet impossible to use in a production application. For example, you can create a pattern such as “start on January 1, 2000 and repeat every last working day of a month” and generate occurrences for it. Occurrences after December 31, 2004 will not be generated in the evaluation mode - Adds “Evaluation Watermark Image” during saving in XPS or TIFF formats.
- Max number of ambiguous e-mail addresses and display names resolved by MS Exchange Server is 20
- Max length of data file allowed to be drag-and-dropped with FileDropPanel is 51200 bytes
- Shows Message box with “Evaluation Message” during a drag-and-drop operation used by FileDropPanel
- Only 1 file is extracted from a given MSO stream
Applying a License
You can easily download an evaluation version of Aspose.Email from its download page. The evaluation version provides absolutely the same capabilities as the licensed version of Aspose.Email. Furthermore, evaluation version simply becomes licensed when you purchase a license and add a couple of lines of code to apply the license.
About the License
The license is a plain text XML file that contains details such as the product name, the number of developers it is licensed to, the subscription expiry date and so on. The file is digitally signed, so do not modify it. Even inadvertent addition of an extra line break into the file will invalidate it.
You need to set a license before utilizing Aspose.Email if you want to avoid its evaluation limitations. It is only required to set a license once per application (or process).
Apply a License from a File
The easiest way to set a license is to put the license file in the folder your application runs from and pass just the file name, without a path, to the set_license() method of the License class:
from aspose.email import License
# Instantiate a License object and set the license through its file name
license = License()
license.set_license("Aspose.Email.Python.lic")
The name you pass to set_license() must match the name of your license file. If you rename the file to “Aspose.Email.Python.lic.xml”, for example, pass that name instead.
Apply a License from a Stream
The same method also accepts a stream, which is convenient when the license is read from a resource, a database or any other source rather than from a file next to the application:
from aspose.email import License
# Load the license file into a stream and set the license from it
with open("Aspose.Email.Python.lic", "rb") as license_stream:
license = License()
license.set_license(license_stream)