Manage Emails in Cloud via .NET REST SDK
Product Page | Docs | Demos | Swagger UI | Blog | Search | Free Support | Free Trial | SDK Reference
Aspose.Email Cloud SDK for .NET is a REST API SDK for creating email applications that work with standard email file formats such as Outlook MSG, EML, iCalendar files, and VCard.
This SDK allows you to work with Aspose.Email Cloud REST APIs in your .NET applications quickly and easily, with zero initial cost.
Cloud Email Processing Features
Aspose.Email Cloud is a REST API for creating email applications that work with standard email file formats. This SDK:
- Lets developers manipulate different email formats such as Outlook MSG, EML, VCard, and iCalendar files.
- Supports AI functions:
- Business card recognition.
- The Name API for parsing and handling personal names.
- Has a built-in email client. This client provides:
- Unified REST API for different email protocols: IMAP, POP3, SMTP, EWS, WebDav.
- Virtual multi-account.
- Message threads (POP3 accounts are also supported).
- Email configuration discovery.
- Disposable email address detection.
Microsoft Outlook Formats: MSG
Email Formats: EML, MSG, MHTML, HTML
Contact: VSF, MSG
iCalendar: ICS
MAPI: MSG, TNEF, EMLX
BCR AI: PNG, JPG, JPEG, TIFF, BMP, GIF
How to use the SDK?
The complete source code is available in the GIT repository.
Use SDK tutorials.
SDK reference documentation is available in this README.
Prerequisites
To use this SDK, you need:
- One of supported (or compatible with supported) .NET frameworks:
- .NETFramework 2.0
- .NETFramework 4.5.2
- .NETStandard 2.0
- MonoAndroid 6.0
- Xamarin.iOS 1.0
- Xamarin.Mac 2.0
- The application information; can be looked up at Aspose Cloud Dashboard (it requires free registration at Aspose Cloud).
Installation
You can use SDK directly in your project via the source code or get a NuGet Package.
From the Package Manager:
PM> Install-Package Aspose.Email-Cloud
Using .NET CLI:
dotnet add package Aspose.Email-Cloud
Or as a Package reference:
<PackageReference Include="Aspose.Email-Cloud"/>
See more details about SDK installation in this tutorial: SDK setup.
Usage examples
To use the API, you should create an EmailCloud
object:
// for complete examples, please visit https://github.com/aspose-email-cloud/aspose-email-cloud-dotnet
// Get Client Id and Client Secret from https://dashboard.aspose.cloud
string MyClientId = "My-Client-Id";
string MyClientSecret = "My-Client-Secret";
// Create instance of the API
var config = new Configuration {
ClientId = MyClientId,
ClientSecret = MyClientSecret
};
var apiInstance = new EmailCloud(config);
// Create request
var request = new CalendarGetRequest("calendar.ics");
var response = apiInstance.Calendar.GetAsync(request);
Business Cards Recognition using C# Code
Use EmailCloud.Ai.Bcr.Parse
method to parse business card image to VCard DTO:
var imageFilePath = "path/to/image/to/parse.png";
using(var file = File.OpenRead(imageFilePath)) {
var result = await api.Ai.Bcr.ParseAsync(
new AiBcrParseRequest(file, isSingle: true));
ContactDto contact = result.Value.First();
Assert.AreEqual("Parsed Display Name", contact.DisplayName);
}
Product Page | Docs | Demos | Swagger UI | Blog | Search | Free Support | Free Trial | SDK Reference