Aspose.Email Cloud
Aspose.Email Cloud is a REST API for manipulating emails 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. This Cloud SDK 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.
What’s new in the latest release
This is a major revamp release for Aspose.Email Cloud SDK for Java. It covers all the Aspose.Email Cloud APIs. This SDK provides a complete solution to work with cloud emails in Java using powerful Aspose.Emails Cloud APIs, 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 Java is freely available on your favorite GitHub repository.
- Aspose.Email Cloud SDK for Java - v1.0.0
Setup Aspose.Email Cloud SDK for Java is also available as released artifacts in the Aspose Maven Repository. You can bypass GitHub source code repository and depend directly on the released artifacts from Aspose Maven Repository by adding the following repository and dependency to development environments like Eclipse or Apache Maven: Aspose Maven Repository
<repositories>
<repository>
<id>aspose-maven-repository</id>
<name>Aspose Maven Repository</name>
<url>http://repository.aspose.cloud/repo/</url>
</repository>
</repositories>
Maven Dependency
<dependency>
<groupId>com.aspose</groupId>
<artifactId>aspose-email-cloud</artifactId>
<version>1.0.0</version>
</dependency>
Get Sources and Javadocs Maven
$ mvn dependency:sources
$ mvn dependency:resolve -Dclassifier=javadoc
Eclipse IDE
$ mvn eclipse:eclipse -DdownloadSources=true
$ mvn eclipse:eclipse -DdownloadSources=true -DdownloadJavadocs=false
pom.xml
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-eclipse-plugin</artifactId>
<configuration>
<downloadSources>true</downloadSources>
<downloadJavadocs>false</downloadJavadocs>
</configuration>
</plugin>
</plugins>
</build>
In order to manipulate any files, first you need to upload them to the Aspose cloud storage or 3th party cloud storage.
try{
//Instantiate Aspose Storage Cloud API SDK
StorageApi storageApi = new StorageApi(apiKey, appSID,true);
//Instantiate Aspose Email Cloud API SDK
EmailApi emailApi = new EmailApi(apiKey, appSID,true);
//set input file name
String name = "email_test";
String fileName = name + ".eml";
String format = "msg";
String storage = "";
String folder = "";
String outPath = "";
//upload files to aspose cloud storage
storageApi.PutCreate(fileName, "", storage, new File(this.getClass().getResource("/" + fileName).toURI()));
//invoke Aspose.Email Cloud SDK API to convert message to other formats
ResponseMessage apiResponse = emailApi.GetDocumentWithFormat(fileName, format, storage, folder, outPath);
if(apiResponse!=null && apiResponse.getStatus().equals("OK")){
//download converted message from api response
InputStream responseStream = apiResponse.getInputStream();
final Path destination = Paths.get("c:\temp\" + name + "." + format);
Files.copy(responseStream, destination, StandardCopyOption.REPLACE_EXISTING);
}
}catch(Exception e){
e.printStackTrace();
}
Product Documentation
The product documentation is available to guide developers to get familiar with the specific resources and operations using Java Cloud SDK. The cloud SDK examples are also available to guide developers to get familiar with SDK. You can use these examples to invoke resources and operations using the Aspose.Email Cloud REST API. Please see the SDK examples of following categories.
- Working with Emails
- How to convert an email from one format to another
- Quick Start With iCalendar API
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 Cloud.
Free product support
In case you encounter any issue while using our API or you have any related query, please feel free to contact via free product support forum.