A collection of components for working with email. It makes it easy to work with Outlook PST, EML, MSG and MHT files.
Project description
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)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distributions
Hashes for Aspose.Email_for_Python_via_NET-24.6-py3-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0fca9c0341b9e4134f139268d0755c3844245d083e6baf95e187220164f9c9ae |
|
MD5 | 77a15512002832deed31082147b2512c |
|
BLAKE2b-256 | f3c7f3b7f42dbb5d87954208c8164b84028c14ff6f8b8506e51da3eaa34ec75c |
Hashes for Aspose.Email_for_Python_via_NET-24.6-py3-none-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 62dbee83fd60dcdeca00c7cb7553313531f10c458168aed81a53413cd4b093a4 |
|
MD5 | 648f9a56bcfaa6077640524692871dd8 |
|
BLAKE2b-256 | 0d22133648ebae7fcf31c21b2d33b24063909b7a7a3d23c708fe1a68f3d0c3b6 |
Hashes for Aspose.Email_for_Python_via_NET-24.6-py3-none-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 45f2b32e7984990b9af240fbd4187f628286f40161c6d5f79ff55ec65744e451 |
|
MD5 | 36e9039d040ec6576984d3a9b9c1516d |
|
BLAKE2b-256 | 9b68021a615a67c8f61ef4f206e21ab2cf7bf2d03a0b3e796f00443d83577d45 |
Hashes for Aspose.Email_for_Python_via_NET-24.6-py3-none-macosx_10_14_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e0c90940e6a5b5eab5e980963f1e3825f74e63e105888ab20507ca388a8b6f58 |
|
MD5 | c28f15df3ca69e4d08a60728a51889b1 |
|
BLAKE2b-256 | 25bd3cc4347464468b5aaa0c1692c8b93f2010aace49eaa4c2d0000fb96a7f31 |