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

Aspose.Email_for_Python_via_NET-25.6-py3-none-win_amd64.whl (58.6 MB view details)

Uploaded Python 3Windows x86-64

Aspose.Email_for_Python_via_NET-25.6-py3-none-macosx_11_0_arm64.whl (57.1 MB view details)

Uploaded Python 3macOS 11.0+ ARM64

Aspose.Email_for_Python_via_NET-25.6-py3-none-macosx_10_14_x86_64.whl (77.8 MB view details)

Uploaded Python 3macOS 10.14+ x86-64

File details

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

File metadata

File hashes

Hashes for Aspose.Email_for_Python_via_NET-25.6-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 76864643b41fbb418b1ff26a708dada51924cd7559d13a7762dadfb15f479905
MD5 beeef3166dc933ce89779dcc4ddeac5c
BLAKE2b-256 41363cc743637705746848bba99baf9568a95837d8d9d1a62af416cbe16b1191

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for Aspose.Email_for_Python_via_NET-25.6-py3-none-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 913dbff017a5c0bc321fc151f5995ebedb2ff83e1ce97876b3ab12cf2d1cc39f
MD5 b432cedb477d15a75792c5421feade91
BLAKE2b-256 e3b9713dc749938ddd0a53601cdad324755fc1306c2f29a227bc5757d6e0bc8c

See more details on using hashes here.

File details

Details for the file Aspose.Email_for_Python_via_NET-25.6-py3-none-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for Aspose.Email_for_Python_via_NET-25.6-py3-none-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 1550924a5204193a766326e4baed3172ec610be4818bf06dead509486d67cd82
MD5 0d8c8178c118f0fe73f60421ff867c5a
BLAKE2b-256 49f7c2fbc1d923f326ce9c54836989b18abfb64480449d79b5cbea88374f62bc

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for Aspose.Email_for_Python_via_NET-25.6-py3-none-macosx_10_14_x86_64.whl
Algorithm Hash digest
SHA256 c63124f66f41cc27c44e6225d0aa7329a9fa2533928ce1accba4ae693899177c
MD5 e193bd7efbc0e0328c973b7b137bb2a2
BLAKE2b-256 95f906b3fdb48e55a582d6ef074eeff422143fbd48e8efc62c359d33345ffa89

See more details on using hashes here.

Supported by

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