Q&A

Q1:What is the process of receiving email messages and what are the common email retrieval protocols?
A1: When a mail server receives a message, it places it within the recipient's mailbox. 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 you need to use the javax.mail.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 ...

Get Sams Teach Yourself J2EE™ in 21 Days, Second Edition 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.