Python Email API
Aspose.Email for Python via .NET is a suite of flexible and easy to use class libraries brought together to produce the most powerful Email Programming Component available today. The Python Email API implements a number of network protocols including SMTP, MIME, POP3, IMAP for creating, sending & receiving messages without needing to have any other component. It can also manipulate, extract & convert message files & message archives.
Aspose.Email for Python via .NET also provides classes and algorithms that are useful for time-oriented recurrence patterns, or schedules. The central concepts are coherent with the iCalendar RFC (2445), so it is easy to incorporate iCalendar features into your own python applications.
Email Features
- Open or save emails in a variety of formats.
- Parse, read and save Microsoft Outlook messages and message archives.
- Comprehensive Object Model for MIME messages.
- Embed objects to email messages.
- Send individual or bulk emails.
- Create emails using Mail Merge while incorporating data from different types of sources.
- Create & consume iCalendar compliant recurrence patterns.
- Connect to POP3 server for message management.
- Access and manage emails, folders & filters using IMAP.
- Send or forward messages via SMTP.
- Verify email addresses, processing bounced messages, analyze spam via Bayesian & more.
Read & Write Email Formats
Microsoft Outlook: MSG, PST, OST, OFT Email: EML, EMLX, MBOX Others: ICS, HTML, MHTML
Getting Started with Aspose.Email for Python via .NET
Are you ready to give Aspose.Email for Python via .NET a try? Simply execute pip install Aspose.Email-for-Python-via-NET to get the latest version & try any of the following code snippets. You may also check the detailed Developer's Guide for all possible usage scenarios.
Inspect PST Structure & Items via Python
personalStorage = PersonalStorage.from_file(dataDir + "template.pst")
folderInfoCollection = personalStorage.root_folder.get_sub_folders()
for folderInfo in folderInfoCollection:
print("Folder: " + folderInfo.display_name)
print("Total Items: " + str(folderInfo.content_count))
print("Total Unread Items: " + str(folderInfo.content_unread_count))
print("----------------------")
Send Bulk Emails via SMTP using Python
message1 = MailMessage("from@gmail.com", "to@gmail.com", "Sending Bulk Emails using Aspose.Email", "message1, how are you?")
message2 = MailMessage("from@gmail.com", "to@gmail.com", "Sending Bulk Emails using Aspose.Email", "message2, how are you?")
message3 = MailMessage("from@gmail.com", "to@gmail.com", "Sending Bulk Emails using Aspose.Email", "message3, how are you?")
manyMsg = MailMessageCollection()
manyMsg.append(message1)
manyMsg.append(message2)
manyMsg.append(message3)
#Send using Smtp Client
client = SmtpClient("smtp.gmail.com", 995, "username", "password")
client.security_options = SecurityOptions.AUTO
client.send(manyMsg)
Release files for Aspose.Email-for-Python-via-NET 26.8
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distributions (wheels)
| File | Reset | |||
|---|---|---|---|---|
| aspose_email_for_python_via_net-26.8-py3-none-win_amd64.whl | Python 3 | none | Windows x86-64 | Details |
| aspose_email_for_python_via_net-26.8-py3-none-manylinux1_x86_64.whl | Python 3 | none | Linux glibc 2.5+ x86-64 | Details |
| aspose_email_for_python_via_net-26.8-py3-none-macosx_11_0_arm64.whl | Python 3 | none | macOS 11.0+ ARM64 | Details |
| aspose_email_for_python_via_net-26.8-py3-none-macosx_10_14_x86_64.whl | Python 3 | none | macOS 10.14+ x86-64 | Details |
Total release size: 287.2 MB
Release files / aspose_email_for_python_via_net-26.8-py3-none-win_amd64.whl
| Download URL | aspose_email_for_python_via_net-26.8-py3-none-win_amd64.whl |
|---|---|
| Size | 58.2 MB |
| Tags | Python 3 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
0d85d607fcdd54fd8ac225130157683e26b41a4650af735eea7d1bdf5b4905d6
|
|
BLAKE2b-256 checksum How to use checksums |
e1a3969c0fbbba2969e8751efdf05d50a3f36ab394f41b31558a7375f9254f7b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.10
|
Release files / aspose_email_for_python_via_net-26.8-py3-none-manylinux1_x86_64.whl
| Download URL | aspose_email_for_python_via_net-26.8-py3-none-manylinux1_x86_64.whl |
|---|---|
| Size | 90.0 MB |
| Tags | Linux glibc 2.5+ x86-64 Python 3 |
|
SHA-256 checksum How to use checksums |
16abe6cad982f8497b32044c55b62907479a70182fdc789705a4a2a520f9dff6
|
|
BLAKE2b-256 checksum How to use checksums |
1d08adb1c87211c4b017abfdea42ef53429e5a14d6e9a27b0bc21ae113a2f751
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.10
|
Release files / aspose_email_for_python_via_net-26.8-py3-none-macosx_11_0_arm64.whl
| Download URL | aspose_email_for_python_via_net-26.8-py3-none-macosx_11_0_arm64.whl |
|---|---|
| Size | 58.2 MB |
| Tags | Python 3 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
51c63cb4145b381469b162bd9a9fd656ae04859c46db2f9c79b52d626b28201f
|
|
BLAKE2b-256 checksum How to use checksums |
216d4b81cb9c9c1ca4da29e1aed16d1c5e84e639d166506672a3ae545e01406b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.10
|
Release files / aspose_email_for_python_via_net-26.8-py3-none-macosx_10_14_x86_64.whl
| Download URL | aspose_email_for_python_via_net-26.8-py3-none-macosx_10_14_x86_64.whl |
|---|---|
| Size | 80.8 MB |
| Tags | Python 3 macOS 10.14+ x86-64 |
|
SHA-256 checksum How to use checksums |
33111c3e3e3ae1f66baace01a9e801f25df97180a560bd926e368ac157472293
|
|
BLAKE2b-256 checksum How to use checksums |
455d5daf733bd61d1a36e1d42624f969ca13557f3776941b05256eb6429ea928
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.10
|