November 2003
Intermediate to advanced
1488 pages
36h 35m
English
The Global Auctions application makes use of JavaMail's functionality in a utility class that will send out an email to registered users notifying them when they have been outbid, or have won or lost on an item. It may also be used to send error messages to users.
The utility class makes use of the Mail Session configured in the Administration Console (defined earlier in this chapter). The class's constructor takes two parameters: a String of the recipient's email address and a String for the message.
Now, let's get to the business of creating our utility class. In a text editor, create and save a new text file as AuctionMailer.java. First we import the classes ...
Read now
Unlock full access