Aspose.Email Cloud[![Aspose.Email Cloud][1] [![][2] What’s new in the latest release This is a major release for Aspose.Email Cloud SDK for Perl. It covers all the [Aspose.Email Cloud APIs][3]. This SDK provides a complete solution to work with cloud emails in Perl using powerful [Aspose.Emails Cloud APIs][4], so you can manipulate message formats such as MSG, EML, and MHT files in the cloud seamlessly. Source Code Repository Complete source code of this release of Aspose.Email Cloud SDK for Perl is freely available on your favorite [GitHub][5] and [Codeplex][6] repositories.

Setup Aspose.Email Cloud SDK for Perl is also available as released package in the [CPAN (Perl Archive Network)][7]. You can bypass [GitHub source code repository][8] and depend directly on the released package by installing from CPAN: Aspose.Email Cloud SDK for Perl - CPAN installation

 sudo cpan AsposeEmailCloud::EmailApi 
```You can also manually build the module by downloading the code and executing the following in the root directory of the download:

perl Build.PL ./Build ./Build test ./Build install

use lib ’lib’; use strict; use warnings; use AsposeStorageCloud::StorageApi; use AsposeStorageCloud::ApiClient; use AsposeStorageCloud::Configuration;

use AsposeEmailCloud::EmailApi; use AsposeEmailCloud::ApiClient; use AsposeEmailCloud::Configuration;

$AsposeEmailCloud::Configuration::app_sid = ‘XXX’; $AsposeEmailCloud::Configuration::api_key = ‘XXX’;

$AsposeEmailCloud::Configuration::debug = 1; $AsposeStorageCloud::Configuration::app_sid = $AsposeEmailCloud::Configuration::app_sid; $AsposeStorageCloud::Configuration::api_key = $AsposeEmailCloud::Configuration::api_key;

#Instantiate Aspose.Storage API SDK my $storageApi = AsposeStorageCloud::StorageApi->new();

#Instantiate Aspose.Email API SDK my $emailApi = AsposeEmailCloud::EmailApi->new();

my $data_path = ‘../data/’;

#set input file name my $fileName = “email_test2”; my $name = $fileName . “.eml”; my $format = “msg”;

#upload file to aspose cloud storage my $response = $storageApi->PutCreate(Path => $name, file => $data_path.$name);

#invoke Aspose.Email Cloud SDK API to convert message to other formats
$response = $emailApi->GetDocumentWithFormat(name=> $name, format=>$format);

if($response->{‘Status’} eq ‘OK’){ #download converted email message from api response my $output_file = ‘C:/temp/’. $fileName . ‘.’ . $format; write_file($output_file, { binmode => “:raw” }, $response->{‘Content’}); }


*   [Working with Email](https://www.aspose.com/docs/display/emailcloud/Working+with+Email)
*   [Working with Attachments](https://www.aspose.com/docs/display/emailcloud/Working+with+Attachments)
*   [Working with Email Properties](https://www.aspose.com/docs/display/emailcloud/Working+with+Email+Properties)

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




[1]: https://blog.aspose.com/wp-content/uploads/sites/2/2016/04/aspose_email_for_cloud.png "Aspose.Email Cloud")](https://www.aspose.com/cloud/email-api.aspx)Aspose.Email 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, Perl, PHP, Ruby, Rails, Python, Node.js 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](https://www.aspose.com/cloud/email-api.aspx
[2]: https://blog.aspose.com/wp-content/uploads/sites/2/2015/10/EmailCloud-Format-Supported.png "Aspose.Email Cloud")](https://www.aspose.com/cloud/email-api.aspx
[3]: https://www.aspose.com/docs/display/emailcloud/Home
[4]: https://www.aspose.com/cloud/email-api.aspx
[5]: https://github.com/aspose-email-cloud/
[6]: https://asposeemailcloud.codeplex.com/SourceControl/latest#SDKs/Aspose.Email-Cloud-SDK-for-Perl/
[7]: https://metacpan.org/release/AsposeEmailCloud-EmailApi/
[8]: https://github.com/aspose-email-cloud/
[9]: https://metacpan.org/release/AsposeStorageCloud-StorageApi
[10]: https://www.aspose.com/docs/display/emailcloud/Home
[11]: https://www.aspose.com/docs/display/emailcloud/Developer+Guide
[12]: https://dashboard.aspose.cloud/