Aspose.Email Cloud SDK for Java 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 Java applications quickly and easily, with zero initial cost.
Aspose.Email Cloud is a REST API for creating email applications that work with standard email file formats. This SDK:
- Lets developers manipulate different emails' formats such as Outlook MSG, EML, VCard, and iCalendar files.
- Supports AI functions:
- The 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.
Aspose.Email Cloud 20.10.0 comes with SDK improvements:
- Typescript, PHP, Java SDKs now have model builders to simplify their initialization.
- All SDK methods now have code examples with parameters initialization.
- Some models now have initialization examples for all SDKs.
- SDK reference documentation with examples now available at url docs.aspose.cloud/email/reference-api
See Release notes.
The complete source code is available in the GIT repository.
Use SDK tutorials and SDK reference documentation.
To use this SDK, you need an App SID and an App Key; they can be looked up at Aspose Cloud Dashboard (it requires free registration in Aspose Cloud for this).
You can either directly use it in your project via jar file or add it as Maven dependency (see repo):
First, you should add a repository:
<repository> <id>aspose-cloud</id> <name>Aspose.Cloud repository</name> <url>https://repository.aspose.cloud</url> </repository>Then, add a dependency:
<dependency> <groupId>com.aspose</groupId> <artifactId>aspose-email-cloud</artifactId> </dependency>See more details about SDK installation in this tutorial: SDK setup.
To use the API, you should create an EmailCloud object:
EmailCloud api = new EmailCloud("Your App Key", "Your App SID");Use AiBcrApi.parse method to parse business card image to VCard DTO:
byte[] fileBytes = IOUtils.toByteArray(new FileInputStream("/tmp/alex.png")); ContactList result = api.ai().bcr().parse(new AiBcrParseRequest( fileBytes, null, null, true)); ContactDto contact = result.getValue().get(0); assert contact.getDisplayName().contains("Parsed Display Name");Product Page | Documentation | Demo | Swagger UI | Blog | Free support | Free trial | SDK reference documentation