8.9. Testing the Credit Check Notification Email
Now that we've developed and deployed JavaMail code to send an email notification message to the user, let's test our application to ensure that everything still works properly. Here are the steps to build and deploy the application:
Click on the "Run Credit Check" link on the JAW Motors home page, enter data on the "Run Credit Check" form, and press the "Submit Credit Info" button. You should be routed back to the main page, and in a minute or two you should see a message that looks like this in your email client's Inbox:
From: firstname.lastname@example.org To: yourName@host.domain Subject: Credit Check Result Pass Credit Check
The credit check randomly passes or fails, so you could also see "Fail Credit Check" in the email message body.