JavaMail
You can develop e-mail client applications by using JavaMail.
The JavaMail API provides a platform-independent and protocol-independent framework you can use to build Java™ technology based e-mail client applications. You can use the JavaMail API to create a mail client capable of sending multimedia mail messages, as well as enabling the implementation of Internet Mail Access Protocol (IMAP), which supports folders, authentication, and attachment handling.
Because SMTP only supports character data, it uses MIME to represent complex data, such as formatted text, file attachments (text and binary), and multimedia content. If you use the Send MIME Mail (QtmmSendMail) API , your application must take care of converting the data into the appropriate content. The JavaMail implementation provides integrated MIME processing capabilities.
JavaMail components are included as part of the IBM® Developer Kit for Java.