The JavaMail API is a set of abstract APIs that model a mail system. Together with service provider implementations, it provides functionality to send and read email using a different set of protocols. The reference implementation of Sun provides IMAP, POP3 and SMTP. The JavaMail API is a required part of the JavaTM 2 Platform, Enterprise Edition. Check out the examples on how to read and write email and how to plug-in new providers.