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 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.