Create & Manipulate Emails anywhere, any platform

Forget about platform and use Python SDK to Create or Convert email messages in the Cloud.

  Start Free Trial
Aspose.Email Cloud SDK for Python

Aspose.Email Cloud SDK for Python

 
 

Cloud SDK for Email manipulation

The platform independent Python SDK for email manipulation is one of our top rated products. Its developed on top of Cloud REST API and enables you to create email manipulation applications, which are capable of dealing with popular email file formats. The supported formats include Outlook MSG, EML and MHT files.

 

Advanced Features of Aspose.Email Cloud SDK for Python

 

 

Create New email

 

Get message properties such as From, To, CC and Subject

 

Get Attachments from email

 

Convert Email to other formats

Create New Email

It is easy to get started with Aspose.Email Cloud SDK for Python, as you don't need to download or install anything. Simply create an account at Aspose for Cloud , get App SID & Key and you are ready to give the Aspose.Email Cloud SDK for Python a try on any platform that supports HTTP requests and responses.

Set Message Properties

Aspose.Email Cloud SDK for Python enables you to set properties for email message. You can set the properties while creating a new email or use an existing message and set its properties. The email properties include From, To, Subject, Bcc, CC, Body, Date, Priority, Attachments etc.

Set Message Property - Python


#Instantiate Aspose Email Cloud SDK instance
api_client = asposeemailcloud.ApiClient.ApiClient(apiKey, appSid, True)
emailApi = EmailApi(api_client);

body = EmailProperty.EmailProperty()
body.Name = "Subject"
body.Value = "This is a new subject"

#upload file to aspose cloud storage
response = storageApi.PutCreate("email_test.eml", "../../data/email_test.eml")
#invoke Aspose.Email Cloud SDK to update an email property by name
response = emailApi.PutSetEmailProperty("email_test.eml", "Subject", body)

Access Message Properties

Aspose.Email Cloud SDK for Python provides the leverage to read and retrieve all or specific email properties such as From, To, Subject, Bcc, CC, Body, Date, Priority, Attachments etc.

Conversion between Popular Email Formats On The Fly

Being a well structured API, Aspose.Email Cloud SDK for Python allows developers to convert hosted email messages on the fly as well as retrieve them from a mailbox. It can be used to convert between EML, MSG and MHT email formats.

Convert EML to MSG format - Python


#Instantiate Aspose Email SDK instance
api_client = asposeemailcloud.ApiClient.ApiClient(apiKey, appSid, True)
emailApi = EmailApi(api_client);
#upload file to aspose cloud storage
response = storageApi.PutCreate("email_test2.eml", "../../data/email_test2.eml")
#invoke Aspose.Email Cloud SDK for Python to convert email to MSG format
response = emailApi.GetDocumentWithFormat("email_test2.eml", "msg")

Download Email Attachments

Aspose.Email Cloud SDK for Python enables developers access and download message attachments from a mailbox store via common communication protocols such as IMAP and POP3.

Download Attachment from Email - Python


#Instantiate Aspose.Email SDK instance
api_client = asposeemailcloud.ApiClient.ApiClient(apiKey, appSid, True)
emailApi = EmailApi(api_client);
#upload file to aspose cloud storage
response = storageApi.PutCreate("email_test2.eml", "../../data/email_test2.eml")
#invoke Aspose.Email Cloud SDK to get attachment from message
response = emailApi.GetEmailAttachment("email_test2.eml", "README.TXT")
 

Support and Learning Resources