« All Events
6 PM – Intro To Java
July 13, 2021 @ 6:00 pm - 7:00 pm
Today We Do
- We added feature to read and write accountMap HashMap into File on disk. This way, when you close your program or IntelliJ, you don’t lose the EmailAccount that you created earlier.
- We used Jackson JSON library to store the file in JSON format: https://github.com/FasterXML/jackson and https://commons.apache.org/proper/commons-io/
Homework
- Add code to do “Check your inbox” feature.
- When user select “1” . You need to get all EmailMessage from messageMap based on user email. Once you get the EmailMessage, just print From, Email Subject and Content.
- After you do this, run your program. And follow these steps
- Login to one of the email.
- Create a new email send to the second email account that you have
- Logout
- Login to the second email account
- Select 1 for Check your inbox
- If you do your code properly, you should see the email that is sent from the first email.
- For example, look at below
-
Please select from below
1. Create an Email Account
2. Login
3. List all Email Accounts
4. Exit
Enter your selection:2
Enter your email: gamas@ayclogic.com
Enter your password: abcd
Login successful!
Please select from below:
1. Check your inbox
2. Create new email
3. Logout
Enter your selection:2
Send To: brandon@ayclogic.com
Subject: Test Subject
Content: Test Content
Email is sent successfuly to brandon@ayclogic.com
Please select from below:
1. Check your inbox
2. Create new email
3. Logout
Enter your selection:3
Please select from below
1. Create an Email Account
2. Login
3. List all Email Accounts
4. Exit
Enter your selection:2
Enter your email: brandon@ayclogic.com
Enter your password: abcd
Login successful!
Please select from below:
1. Check your inbox
2. Create new email
3. Logout
Enter your selection:1
gamas@ayclogic.com , Test Subject , Test Content
Please select from below:
1. Check your inbox
2. Create new email
3. Logout
Enter your selection: