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-26.7-py3-none-win_amd64.whl (58.2 MB view details)

Uploaded Python 3Windows x86-64

aspose_email_for_python_via_net-26.7-py3-none-macosx_11_0_arm64.whl (58.2 MB view details)

Uploaded Python 3macOS 11.0+ ARM64

aspose_email_for_python_via_net-26.7-py3-none-macosx_10_14_x86_64.whl (80.8 MB view details)

Uploaded Python 3macOS 10.14+ x86-64

File details

Details for the file aspose_email_for_python_via_net-26.7-py3-none-win_amd64.whl.

File metadata

File hashes

Hashes for aspose_email_for_python_via_net-26.7-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 39480f42b597ca495cf9298432fc4c82ac149b5754a0d43e1ff75ef0c5b48465
MD5 9be013487a7720da7e17664869f671c6
BLAKE2b-256 7d2f5d6c3d814274f05b13c34640d88db70988aa2820393c2113ac70c815801a

See more details on using hashes here.

File details

Details for the file aspose_email_for_python_via_net-26.7-py3-none-manylinux1_x86_64.whl.

File metadata

File hashes

Hashes for aspose_email_for_python_via_net-26.7-py3-none-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 91f6a2c58c8ed2d8f4b2302f75cd6faab12ce8575d7a3ecad1ecb6732a1a611b
MD5 56dcabe3b912d2fd4ef1b6ab22c356ae
BLAKE2b-256 a0b706d8d5810d2aeaeaf3e58b6f6ddeb54393c477f141f2027f5cf96cc7487d

See more details on using hashes here.

File details

Details for the file aspose_email_for_python_via_net-26.7-py3-none-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for aspose_email_for_python_via_net-26.7-py3-none-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e96f6b4c0cece3be535a520070db97b694355a4161e43134067223abbcad7234
MD5 7e40128a93aa5a02a55a716fc0e52c55
BLAKE2b-256 6856be8ffc3ad6e82259e7670b542bbf4e910197bf1768c69163105c3fde7ed8

See more details on using hashes here.

File details

Details for the file aspose_email_for_python_via_net-26.7-py3-none-macosx_10_14_x86_64.whl.

File metadata

File hashes

Hashes for aspose_email_for_python_via_net-26.7-py3-none-macosx_10_14_x86_64.whl
Algorithm Hash digest
SHA256 822d11dc641dba01b55290aa7f4aaf85f50d907f1942f37a3085d02a2d0be38d
MD5 04bba7d33a8b4144bd0ce4312b1ca6c3
BLAKE2b-256 b0e921377061cbabc12234a9be597d388bb39340957af8db98fe638e89832dc2

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