Browse our Products

<dependency>
<groupId>com.aspose</groupId>
<artifactId>aspose-email</artifactId>
<version>24.9</version>
<classifier>jdk16</classifier>
</dependency>
copied!  
                                                
                                                  compile(group: 'com.aspose', name: 'aspose-email', version: '24.9', classifier: 'jdk16')
                                                
                                              
copied!  
<dependency org="com.aspose" name="aspose-email" rev="24.9">
 <artifact name="aspose-email" m:classifier="jdk16" ext="jar"/>
</dependency>
copied!  
libraryDependencies += "com.aspose" % "aspose-email" % "24.9"
copied!  

Java Email API

main-banner

Product Page | Docs | Demos | API Reference | Examples | Blog | Search | Free Support | Temporary License

Aspose.Email for Java is a complete set of Email Processing APIs to create, read and manipulate emails from within your applications. It makes it easier to work with many Outlook email message formats such as MSG, EML, EMLX and MHT files without the need of installing Microsoft Outlook. It also enables you to manage message storage files - Personal Storage Files (PST), Offline Storage Files (OST) along with message sending and receiving capabilities. You can also read and extract Outlook PST file that can be saved to disk in MSG format.

Email API Features

  • Create messages from scratch or load existing email files for editing.
  • Create and Set contents of MIME messages.
  • Extract contents from emails.
  • Load and save appointment in ICS format.
  • Ability to connect to SMTP, POP3, IMAP, Exchange server.
  • Works with Thunderbird, Zimbra and IBM Notes.

Read & Write Email Formats

Microsoft Outlook: MSG, PST, OST, OFT
Email: EML, EMLX, MBOX
Others: ICS, VCF, HTML, MHTML

Read Email Formats

Mac Outlook: OLM

Supported Environments

  • Microsoft Windows: Windows Desktop & Server (x86, x64)
  • macOS: Mac OS X
  • Linux: Ubuntu, OpenSUSE, CentOS, and others
  • Java Versions: J2SE 7.0 (1.7), J2SE 8.0 (1.8)

Get Started

Aspose.Email Java APIs are hosted at the Aspose Repository. You can easily use Aspose.Email for Java API directly in your Maven projects with simple configurations. For the detailed instructions please visit Installing Aspose.Email for Java from Maven Repository documentation page.

Perform IMAP Message Backup Operation using Java

ImapClient imapClient = new ImapClient();
imapClient.setHost("<HOST>");
imapClient.setPort(993);
imapClient.setUsername("<USERNAME>");
imapClient.setPassword("<PASSWORD>");
imapClient.setSupportedEncryption(EncryptionProtocols.Tls);
imapClient.setSecurityOptions(SecurityOptions.SSLImplicit);

ImapMailboxInfo mailboxInfo = imapClient.getMailboxInfo();

ImapFolderInfo info = imapClient.getFolderInfo(mailboxInfo.getInbox().getName());
ImapFolderInfoCollection infos = new ImapFolderInfoCollection();
infos.add(info);

imapClient.backup(infos, dataDir + "\\ImapBackup.pst", BackupOptions.None);

Product Page | Docs | Demos | API Reference | Examples | Blog | Search | Free Support | Temporary License

VersionRelease Date
24.9October 5, 2024
24.8September 8, 2024
24.7August 5, 2024
24.6July 8, 2024
24.5June 8, 2024
24.4May 6, 2024
24.3.1April 24, 2024
24.3April 5, 2024
24.2March 10, 2024
24.1February 4, 2024
23.12January 1, 2024
23.11December 5, 2023
23.10November 20, 2023
23.9October 8, 2023
23.8September 21, 2023
21.2.1.1September 21, 2023
23.7September 3, 2023
21.2.0.1September 2, 2023
23.6July 9, 2023
23.4July 9, 2023
23.5June 12, 2023
23.3April 8, 2023
23.1March 4, 2023
23.2March 3, 2023
22.12January 2, 2023
22.11December 7, 2022
22.10November 7, 2022
22.9October 3, 2022
22.4September 9, 2022
22.7September 9, 2022
22.8September 5, 2022
22.6July 6, 2022
22.5June 6, 2022
22.3April 4, 2022
22.2March 3, 2022
22.1January 31, 2022
21.12January 5, 2022
21.11December 3, 2021
21.10November 3, 2021
21.9October 4, 2021
21.8September 2, 2021
21.7August 4, 2021
21.6July 6, 2021
21.5June 2, 2021
21.4May 6, 2021
21.3April 5, 2021
21.2.1March 4, 2021
21.2March 3, 2021
21.1February 1, 2021
20.12January 2, 2021
20.11November 30, 2020
20.10November 3, 2020
20.9October 2, 2020
20.8August 31, 2020
20.7August 4, 2020
20.6July 7, 2020
20.5June 3, 2020
20.4May 4, 2020
20.3April 3, 2020
20.2March 4, 2020
20.1February 3, 2020
19.12January 2, 2020
19.11December 2, 2019
19.10November 4, 2019
19.9October 2, 2019
19.8August 30, 2019
19.7August 1, 2019
19.6July 4, 2019
19.5June 3, 2019
19.4May 3, 2019
19.3April 3, 2019
19.2March 4, 2019
19.1February 8, 2019
18.12December 31, 2018
18.11December 4, 2018
18.10November 5, 2018
18.9October 4, 2018
18.8September 4, 2018
18.7August 4, 2018
18.6July 3, 2018
18.5June 4, 2018
18.4May 2, 2018
18.3March 26, 2018
18.2February 23, 2018
18.1January 28, 2018
17.12December 15, 2017
17.11November 29, 2017
17.10October 12, 2017
17.9September 12, 2017
17.8August 9, 2017
17.7July 10, 2017
17.6.0June 12, 2017
17.5.0May 9, 2017
17.4.0April 14, 2017
17.3.0March 28, 2017
17.2.0February 16, 2017
17.1.0January 27, 2017
16.12.0December 19, 2016
16.11.0November 15, 2016
16.10.0October 10, 2016
6.9.0September 9, 2016
6.8.0August 15, 2016
6.7.0July 12, 2016
6.6.0June 14, 2016
6.5.0May 10, 2016
6.4.0April 13, 2016
6.3.0March 11, 2016
6.2.0February 11, 2016
6.1.0January 14, 2016
6.0.0December 14, 2015