Question: Java Email Template Application: Create an application that creates a series of emails as outlined below. Create an array of email addresses that include the
Java Email Template Application:
Create an application that creates a series of emails as outlined below.
Create an array of email addresses that include the following data:
" james ,butler,jbutler@hotmail.com"
"Josephine,Darakjy,Josephine_Darakjy@darakjy.org"
"ART,VENERE,ART@VENERE.ORG"
Store a template for a mass email like this:
String template =
"To: {email} " +
"From: noreply@deals.com " +
"Subject: Deals! " +
"Hi {first_name}, " +
"We've got some great deals for you. Check our website!";
When the application starts, it should read the email addresses and first names, merge them into the mass email template, and display the results on the console.
All email addresses should be converted to lowercase.
All first names should be converted to title case.
Test your application by adding names/emails to the list of email addresses without modifying any other code, the application should create more emails.
Test your application by modifying the template without modifying any other code, the application should change the content of the email thats created.
Application output should look like this
Console
Emails
================================================================
To: jbutler@hotmail.com
From: noreply@deals.com
Subject: Deals!
Hi James,
We've got some great deals for you. Check our website!
================================================================
To: josephine_darakjy@darakjy.org
From: noreply@deals.com
Subject: Deals!
Hi Josephine,
We've got some great deals for you. Check our website!
================================================================
To: art@venere.org
From: noreply@deals.com
Subject: Deals!
Hi Art,
We've got some great deals for you. Check our website!
End
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
