Using JavaMail to Send Simple Email

In this section, we use WebLogic Server JavaMail to construct a Java ServerPage (JSP) Web page that generates an email based on the data included in the form (see Figure 11-1).

Figure 11-1. Form for Sending Email

The user inputs an Internet address for both the recipient and the sender, and requests that the message be sent. The recipient of this message would see something like Figure 11-2.

Figure 11-2. Email Message Received

Note that the message subject is IGNORE. As you'll see, this is because our demonstration ...

Get J2EE™ Applications and BEA™ WebLogic Server™ now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.