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

Uploaded Python 3 Windows x86-64

Aspose.Email_for_Python_via_NET-24.11-py3-none-macosx_11_0_arm64.whl (56.9 MB view details)

Uploaded Python 3 macOS 11.0+ ARM64

Aspose.Email_for_Python_via_NET-24.11-py3-none-macosx_10_14_x86_64.whl (77.3 MB view details)

Uploaded Python 3 macOS 10.14+ x86-64

File details

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

File metadata

File hashes

Hashes for Aspose.Email_for_Python_via_NET-24.11-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 e6a885de1565d655c2954aa16b08c921f5e015086674d5350f9fdf77651c9fc4
MD5 d1e0fa9d07077ec0bca77dd5cadeeed6
BLAKE2b-256 5869e8c1a0bb1a7f609cd7d11665625fd6218861cc1adf2140529d41473d2a33

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for Aspose.Email_for_Python_via_NET-24.11-py3-none-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 cdfa2ff906365de89fb1b6e25b180cfda951556f4900b7e0fbaa26b7911d24af
MD5 f642d7dbbddceea04fe041afc73423fb
BLAKE2b-256 852b67c12cc8c8aecd5c49ff636b8b564514a4c92b3d959c45aa383e2d48a5da

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for Aspose.Email_for_Python_via_NET-24.11-py3-none-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 14d16b5269a429a44c24a4b33a826fd422e772e8211039131f7ef0bb2d7ae3aa
MD5 cc2f727866f98fa8c6e71dd4a06bed7d
BLAKE2b-256 f14c2051da08f355363130a399f886ffb199b0f79d47b2f7da179e685dc4e8d7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for Aspose.Email_for_Python_via_NET-24.11-py3-none-macosx_10_14_x86_64.whl
Algorithm Hash digest
SHA256 e706daae2478ea84287f575e092d252dfd2ed931f4cb1e72fe817a65b97b54bc
MD5 b6f81198b74c66a9f3040ca3d1318737
BLAKE2b-256 93dbe72c540e83bf088d7c8499b4780b17c4e288d158b4763cf58849cce8cca9

See more details on using hashes here.

Supported by

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