Read, Manipulate and Convert EML, MHT, MSG Email Messages Using new Aspose.Email Cloud PHP SDK

Share on FacebookTweet about this on TwitterShare on LinkedIn

Aspose.Email CloudAspose.Email for Cloud is a REST API for manipulating email in the cloud. It is a true REST API that can be used with any language: .NET, Java, PHP, Ruby, Rails, Python, jQuery and many more. You can use it with any platform — web, desktop, mobile, and cloud.

Aspose.Email Cloud allows developers to provide capabilities of processing email messages in their applications. Aspose.Email Cloud is a complete solution that allows you to create email archiving applications that work with common email file formats. It lets developers manipulate message formats such as MSG, EML, and MHT files. The API supports many common tasks, for example accessing messages, reading message properties such as sender, receiver, message sent date, and message details. It also supports converting messages back and forth between EML, MSG and MHT formats. Learn More

Read EML, MHT or MSG Message Files

Every email message contains certain information such as sender, receiver, subject, body, and a list of attachments. These properties can be retrieved from the email message using the Aspose.Email Cloud API. Developers can retrieve all properties, or retrieve specific properties by name. Most common message properties can be read with the API (From, To, Subject, Bcc, CC, Body, Date, Priority, Attachments and some others).

Examples

Convert Messages To Other Formats

It’s common to have data in one format, but find that applications or clients need it in another format. The Aspose.Email Cloud API allows you to convert messages from one format to another. You can use Aspoose.Email for Cloud REST API reliably to convert messages between formats. At present, the API supports the following conversions:

Email Cloud Supported Formats

  • MSG to EML
  • MSG to MHT
  • EML to MSG
  • EML to MHT
  • MHT to MSG
  • MHT to EML

Examples

Download Attachments from Message

Email messages may contain attachments: attachments is a common method for sharing documents and images between sender and receiver. Aspose.Email Cloud lets developers access and download message attachments from a mailbox store via common communication protocols such as IMAP and POP3.

Examples

What’s new in the latest release

A major revamp release for Aspose.Email Cloud SDK for PHP covers all the Aspose.Email Cloud APIs. This SDK provides a complete solution for integrating the powerful Aspose.Email Cloud APIs with PHP, so performing any operation on any Email related format in the cloud is as easy as it can be.

Installation and Configuration

  1. Download “Aspose.Email_Cloud_SDK_for_PHP_v1.0.0“.
  2. Include “vendor/autoloader.php” file in your script.
  3. In src/Aspose/Email/AsposeApp.php Set the following variables
    
        /**
         * Represents AppSID for the app.
         */
        public static $appSID = 'xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxx';
    
        /**
         * Represents ApiKey for the app.
         */
        public static $apiKey = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx';
    

Documentation

A detailed documentation to get familiar with the resources and operations of Aspose.Slides Cloud REST API is available for the developers.

Start a Free Trial Today

Start a free trial today – all you need is to sign up with the Aspose Cloud service. Once you have signed up, you are ready to try the powerful file processing features offered by Aspose for Cloud.