Create or Manipulate Emails anywhere, any platform

Forget about platform, just send a REST API call to Create or Convert email messages to leading email formats.

  Start Free Trial
Aspose.Email Cloud SDK for .NET

Aspose.Email Cloud SDK for .NET

 
 

Aspose.Email Cloud SDK for .NET is developed on top of REST API and provides the capabilities of creating email archiving applications that work with common email file formats. It also enables you to manipulate popular message formats such as Outlook MSG, EML and MHT files.

 

Advanced Email Conversion Features

 

 

Create New email

 

Convert between message formats

 

Add attachments to email

 

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

 

Download attachments from message files

Get Started with Email Management REST API

It is easy to get started with Aspose.Email Cloud SDK for .NET and there is nothing to install. Simply create an account at Aspose for Cloud and get your application information. Once you have the App SID & key, you are ready to give the Aspose.Email Cloud SDK for .NET a try with any language - on any platform that supports HTTP requests and responses. It is a REST API that can be used to create email archiving applications capable of managing and manipulating email messages.

Send new Email - C#


EmailApi emailApi = new EmailApi(Common.APP_KEY, Common.APP_SID, Common.BASEPATH);
EmailDocument email_Doc = new EmailDocument();
EmailProperties emailProperties = new EmailProperties();
System.Collections.Generic.List links = new System.Collections.Generic.List { };
System.Collections.Generic.List empProps = new System.Collections.Generic.List { };

EmailProperty emailBody = new EmailProperty();
EmailProperty emailTo = new EmailProperty();
EmailProperty emailFrom = new EmailProperty();

emailBody.Name = "Body";
empProps.Add(emailBody);
emailTo.Name = "To";
empProps.Add(emailTo);
emailFrom.Name = "From";
empProps.Add(emailFrom);

emailProperties.List = empProps;
emailProperties.Link = link;

email_Doc.DocumentProperties = emailProperties;
// Invoke Aspose.Email Cloud SDK for .NET to add new email
EmailDocumentResponse apiResponse = emailApi.PutCreateNewEmail("email_test.eml", "", "", email_Doc);

Conversion between Popular Email Formats

Being a well structured API, Aspose.Email Cloud SDK for .NET 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 - C#


EmailApi emailApi = new EmailApi(Common.APP_KEY, Common.APP_SID, Common.BASEPATH);
// Upload source file to Aspose cloud storage
storageApi.PutCreate("email_test.eml", "", "", System.IO.File.ReadAllBytes(Common.GetDataDir() + "email_test.eml"));
// Invoke API to convert email to msg formats
ResponseMessage apiResponse = emailApi.GetDocumentWithFormat("email_test.eml", "msg", storage, folder, outPath);

Access Message Properties

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

Download Email Attachments

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

Platform & Storage Independence

Aspose.Email Cloud SDK for .NET can be used with .NET based application on any platform that supports HTTP requests and responses. You can also use Aspose.Email Cloud SDK for .NET with many third party storage providers including Amazon S3, Google Cloud, Google Drive and Dropbox.

 

Support and Learning Resources