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)
Read Messages from Thunderbird's MBOX
reader = MboxrdStorageReader(dataDir + "ExampleMbox.mbox", False)
eml = reader.read_next_message()
while (eml is not None):
print("Subject: " + eml.subject)
# save this message in EML or MSG format
eml.save(eml.subject + "_out.eml", aspose.email.SaveOptions.default_eml)
eml.save(eml.subject + "_out.msg", aspose.email.SaveOptions.default_msg_unicode)
eml = reader.read_next_message();
reader.dispose();
Product Page | Documentation | API Reference | Code Examples | Blog | Free Support | Temporary License
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
File details
Details for the file Aspose.Email_for_Python_via_NET-20.2.1-py3-none-win_amd64.whl
.
File metadata
- Download URL: Aspose.Email_for_Python_via_NET-20.2.1-py3-none-win_amd64.whl
- Upload date:
- Size: 34.9 MB
- Tags: Python 3, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.15.0 pkginfo/1.4.2 requests/2.18.1 setuptools/46.1.3 requests-toolbelt/0.8.0 tqdm/4.23.4 CPython/3.5.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | cb701243c6a5621e19fd40331f6ebbf32e46f84c2446e1b2dd5afedefd3b8f21 |
|
MD5 | 853d1b88a4ebb8f77dfaf3cd5a3fc3c7 |
|
BLAKE2b-256 | 236e2c94c2ce39da3202fcc893597317a9d6f2a21d0ffdb7191f880948fdfb2f |
File details
Details for the file Aspose.Email_for_Python_via_NET-20.2.1-py3-none-win32.whl
.
File metadata
- Download URL: Aspose.Email_for_Python_via_NET-20.2.1-py3-none-win32.whl
- Upload date:
- Size: 31.6 MB
- Tags: Python 3, Windows x86
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.15.0 pkginfo/1.4.2 requests/2.18.1 setuptools/46.1.3 requests-toolbelt/0.8.0 tqdm/4.23.4 CPython/3.5.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3c3f8f4f0e02a7670acd3b40e9dabe1469499c0ea5114784f286fc157c7dd4b3 |
|
MD5 | 96fbfd38b58a64f776f9ded087b7b1e2 |
|
BLAKE2b-256 | 8633f43126675b6ff344d45767dfcfe1eda11dac96c1a00b5b5d1ceb30f3bf5f |