Java Reference
In-Depth Information
8
F IGURE 8.1
Output of the MailForm.html .
N OTE
You will need to change the mail host in the servlet to use your ISP's mail host.
Now fill in the appropriate form data and click the Submit button. You should see a response
that tells you who received the mail, who sent the mail, and the mail host. To test the example,
it is probably best to send mail to yourself, so you can check the message.
Summary
In this chapter, we covered what JavaMail is and how you can use it. We also looked at how
you can use JavaMail with servlets.
In the next chapter we are going to take a look at servlet security.
 
Search WWH ::




Custom Search