Python APIs for Email processing

Create, Manipulate or Convert email formats including MSG, EML, EMLX and MHT within Python applications.

  Download Free Trial
Aspose.Email for Python

Aspose.Emailfor Python via .NET

 
 

Aspose.Email for Python via .NET is a suite of flexible and easy to use class libraries brought together to produce a most unique and powerful email programming component. It saves your time and effort by allowing you to add complex message file handling capabilities to your applications, quickly and easily.

Aspose.Email for Python via .NET enables the application developers to create, manipulate or convert most commonly used email message formats without worrying about the complexities of the underlying format implementation. The Email API can be used for basic email management features such as message content editing and attachment manipulation as well as for its advanced features such as management of the message storage files, sending & receiving emails via a number of protocols including POP3, IMAP & SMTP.

 

Advanced Email Processing API Features

 

 

Email format conversion

 

Send & receive emails with attachments

 

Download emails from POP3 and IMAP mail servers

 

Create and update tasks using iCalendar

 

Manipulate message storage files

 

Manipulate email attachments & linked resources

 

Send iCalendar compliant appointments or meetings

 

Support for SSL & TLS

 

Support for TNEF attachments

Dynamically Convert Message Files

Aspose.Email for Python via .NET is a good choice if you are looking for an API to inter-convert message files. It provides easy-to-use interfaces for the conversion process while hiding all the ugly details of the underlying format specifications. All you need to do is to load the source file in Aspose.Email object model and call the Save method with appropriate parameters. It is really that simple!

Convert MSG to various formats - Python

message = MailMessage.load(dir + "template.msg")
# convert MSG to EML, HTML & MHTML formats
message.save("output.eml", SaveOptions.default_eml)
message.save("output.html", SaveOptions.default_html)
message.save("output.mhtml", SaveOptions.default_mhtml)

Extensive Support for Appointments

Aspose.Email for Python via .NET can be used to create appointments and save it in ICS format. The Python Email Library also allows to load appointments from ICS files, read or write appointment events, create appointment as draft and set participants status of the appointment attendees

Working with iCalendar API

Aspose.Email for Python via .NET provides the capability to create and save Outlook Calendar objects in MSG and ICS formats. Not only you can create and save iCalendar objects, but you can also send, retrieve, update and cancel meeting requests. Moreover, the API allows you to dynamically produce & consume recurrence patterns in iCalendar (RFC 2445) format via an intuitive object model.

SMTP, POP3 & IMAP Support

Aspose.Email for Python via .NET API empowers you to create, send and receive emails using SMTP, POP3 and IMAP protocols. It allows you to log into POP3 servers by username and password or APOP authentication to perform email operations like: view mailbox size and messages count, retrieve the full message or its header, delete messages from server as well as basic POP3 commands.

Aspose.Email for Python via .NET also supports IMAP protocol including its commands as well as authentication, create, delete, select, query folders, get, delete, save messages and manipulate message flags.

Manage Message Storage Files

Aspose.Email for Python via .NET allows you to manage Outlook storage files such as PST & OST. You can perform a number of operations on existing storage files as well as create new PST files from scratch. Possible operations include folder listing, message listing, extraction of messages and contacts in MSG format.

Along with Outlook storage files, Aspose.Email for Python via .NET also supports Mbox file format. You can use Aspose.Email for Python via .NET to load existing Mbox files and extract message information.

Extract messages from Mbox - Python

reader = MboxrdStorageReader(dir + "template.mbox", False)
eml = reader.read_next_message()
# Read all messages in a loop
while (eml is not None):
    # show message subject
    print("Subject: " + eml.subject)
    # save message in EML & MSG formats
    eml.save("output.eml", aspose.email.SaveOptions.default_eml)
    eml.save("output.msg", aspose.email.SaveOptions.default_msg_unicode)
    # get the next message
    eml = reader.read_next_message();
reader.dispose();
 

Support and Learning Resources

 

Aspose.Email offers individual Email APIs for other popular development environments as listed below: