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 ...

Get Sams Teach Yourself J2EE™ in 21 Days now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.