Question: Exercise 3-4: Run a web application that sends email. I was looking for the step by step solution for this in textbook solution of Chapter
Exercise 3-4: Run a web application that sends email.
I was looking for the step by step solution for this in textbook solution of Chapter 14 of Java Servlets and JSP 3rd Edition but found nothing which is why I'm asking now.
Test the application
- Start NetBeans and open the project named ch14email thats in the book_apps
- Run the application to see how it works. After you enter your name and email address and click the Join Now button, the application should display an error message that explains why the email couldnt be sent.
- Switch back to NetBeans. In the Output window, check the Tomcat 8.0 Log tab and view the email that the application tried to send.
-
Modify the application so it works correctly
- Expand the Source Package folder, expand the util package, and note that there are three files for sending email: Local, Yahoo, and G-mail.
- If you have a Yahoo or G-mail account, open the class that corresponds with the account you want to use. Then, change the email address and password to your email address and password so the class can connect to your email server.
- Expand the Source Packages folder, expand the email package, and open the EmailListServlet class. Then, review its code.
- Modify the code so it uses the MailUtilG-mail class you edited earlier in this exercise. (Chegg won't let me use the other term for the popular mail site I hope you know what I'm talking about. I am using G-mail not Yahoo.)
- Run the application to see how it works. After you enter your name and email address and click the Join Now button, the application should send an email to you.
- To keep your password secure, modify the MailUtilG-mail class you edited earlier in this exercise so it specifies a password of supersecret.
- I need this in step by step and code in Java and please let me know if not enough information as this is all I can provide for now thank you.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
