Java Reference
In-Depth Information
Listing 3.5. ProcessOrder
The EmailService class will handle sending out confirmation emails. The confirmation
email includes an order number for tracking the shipping, as well as information about the
payment method used and a summary of the item to be shipped. Sending out an email may
take some time because a connection with the mail server must be established and domain
names and addresses resolved. The code for this class is shown in the following listing.
 
Search WWH ::




Custom Search