Skip to main content

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

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

Aspose.Email_for_Python_via_NET-23.4-py3-none-win_amd64.whl (52.6 MB view details)

Uploaded Python 3Windows x86-64

Aspose.Email_for_Python_via_NET-23.4-py3-none-macosx_10_14_x86_64.whl (66.6 MB view details)

Uploaded Python 3macOS 10.14+ x86-64

File details

Details for the file Aspose.Email_for_Python_via_NET-23.4-py3-none-win_amd64.whl.

File metadata

File hashes

Hashes for Aspose.Email_for_Python_via_NET-23.4-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 f1f76cb8afc5a61c9b6a85912eb78f1d7e85c7105ee9aeae4f31a29536b7d506
MD5 795eac9a92f3a587855f7687370c0753
BLAKE2b-256 18c038b2ebb4612f5bd968259d8b4eb4e2c61f633d112e6f0e1b135b889065be

See more details on using hashes here.

File details

Details for the file Aspose.Email_for_Python_via_NET-23.4-py3-none-manylinux1_x86_64.whl.

File metadata

File hashes

Hashes for Aspose.Email_for_Python_via_NET-23.4-py3-none-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 288ab093b120298ca078740873f921f537ba2d4ffb5a2aa3e4455f91b87f1d90
MD5 08e68016cb3bea107c2df6164f2f782c
BLAKE2b-256 9a12c06ae1509899710c8dc7061127a68201176336b327b3c6b06351e9a292a4

See more details on using hashes here.

File details

Details for the file Aspose.Email_for_Python_via_NET-23.4-py3-none-macosx_10_14_x86_64.whl.

File metadata

File hashes

Hashes for Aspose.Email_for_Python_via_NET-23.4-py3-none-macosx_10_14_x86_64.whl
Algorithm Hash digest
SHA256 3c23879d178678c77f919a4a526928f87bfdbf1056db911bceebe478521d29c3
MD5 7fa213bdd390a509c391b6702957a9b9
BLAKE2b-256 2ffce4702b01c4c6abc0f0dc3e4ad84486f47279b5965bec517d9f37ab2392b4

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page