O'Reilly logo

Sams Teach Yourself EJB in 21 Days by Krishna Kothapalli, Ragae Ghaly

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Using the JavaMail API

The previous section summarizes all the main classes of the JavaMail API, and in this section, you'll learn how to connect all the pieces together to perform the regular operations of e-mail services. You'll explore how to send, reply, and forward messages, in addition to finding out how to read or retrieve and delete them.

Sending Messages with JavaMail

Sending an e-mail message can vary between sending a plain text message and a rich-content message. The next sections shed light on how to send messages in languages that aren't Latin based. Forwarding and replying to messages are also implemented by sending messages. You'll learn how to send messages with attachments.

Sending a Text Message

This is the most common method ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required