FAQ — Aspose.Email FOSS for Python
Licensing
What license does aspose-email-foss use?
MIT license. No license key is required.
Installation
How do I install aspose-email-foss?
pip install aspose-email-fossWhat Python version is required?
Python 3.10 or later.
Are there native dependencies?
No. The library is pure Python with zero external dependencies.
Format Support
Which email formats are supported?
| Format | Import | Export |
|---|---|---|
| MSG (Outlook) | Yes | Yes |
| CFB (Compound File Binary) | Yes | Yes |
Can I read EML files?
Not directly. Convert EML content to an EmailMessage object and use MapiMessage.from_email_message().
Can I convert MSG to EML?
Yes. Call msg.to_email_string() for RFC 5322 text output.
API Usage
How do I load an MSG file?
from aspose.email_foss.msg.message import MapiMessage
msg = MapiMessage.from_file("message.msg")How do I create a new message?
msg = MapiMessage.create("Subject", "Body")
msg.save("output.msg")How do I add attachments?
msg.add_attachment("file.pdf", data_bytes, "application/pdf")Known Limitations
Are there any unimplemented methods?
No. All public API methods are fully implemented in the current version.
Is TNEF (winmail.dat) supported?
No. Only the standard MSG (CFB) format is supported.
Is calendar/appointment support available?
The library handles MSG files generically. Calendar-specific properties can be accessed via MAPI property IDs but there is no dedicated calendar API.