Write an application that executes from the command line and allows a user to send an e-mail. The application should prompt the user for his or her mail host and e-mail address, the recipient's e-mail address, the message subject, and the message content.
There are two parts to this final exercise, and both relate to the case study application you have been building throughout this book:
When a customer registers a new job, a message is sent to the Job Match Message-driven bean. The bean then updates the Matched table with applicants that match that job. Now, write code using the JavaMail API that sends an e-mail message to the customer informing him or her of all the applicants that match his or her job specification.
When a new applicant ...