I'm using Java Spring Boot to build a simple desktop app and there, in the following constructor for the class EmailSenderHandler
I want to set this.emailBody
property to the text content in the HTML file stored in htmlFilePath
. I can't think of a proper method to do that, can anyone help me with that? Thanks in advance.
public EmailSenderHandler(String inputFilePath,
String csvFilePath,
String htmlFilePath,
String fromEmail,
String password,
String fromEmailName,
String emailBody,
AtomicLong progressCount,
DataProcessor dataProcessor)
{
this.inputFilePath = inputFilePath;
this.csvFilePath = csvFilePath;
this.htmlFilePath = htmlFilePath;
this.fromEmail = fromEmail;
this.password = password;
this.fromEmailName = fromEmailName;
this.emailBody = emailBody;
this.progressCount = progressCount;
this.dataProcessor = dataProcessor;
}