Running the JavaMail Application

To run the JavaMail application, you must deploy the emailer.ear file into the appropriate application server. The following steps show you how to deploy the EAR file into WebLogic Server:

c:styejb>setEnvWebLogic.bat
c:styejb>cd day20
c:styejbday20> runWebLogic.bat
					

Similarly, you can deploy the application into the JBoss server using the runJboss.bat script.

After you deploy the application on WebLogic Server, you can run the client from your Web browser by putting the following URL in the address field: http://localhost:7001/day20/index.html. On the JBoss server, you need to use the URL http://localhost:8080/day20/index.html.

As shown in Figure 20.5, fill the e-mail address with your e-mail address, and a message of your choice, and then click on the Send button. Check your e-mail for the delivered message.

Figure 20.5. HTML form to send e-mail messages.


..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.191.176.5