O'Reilly logo

Sams Teach Yourself J2EE™ in 21 Days by Peter Roxburgh, Andy Longshaw, Debbie Law, Dan Haywood, Martin Bond

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

Q&A

Q1:Why does an e-mail system require retrieval protocols?
A1: When a mail server receives a message, it places it within the recipient's mail box. The recipient then connects to the mail server and downloads the message to his or her local machine. The sequence of exchanges between the recipient's machine and the mail server use a retrieval protocol, such as POP3 or IMAP.
Q2:Why do I need to use the Message class's inner class RecipientType when adding a recipient to a message?
A2: There are three types of recipient, TO, CC, and BCC, so you must stipulate the type of recipient you want to add to a message. The RecipientType class exposes three static fields that represent the three types of recipients.
Q3:I want to send a HTML message that ...

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