My string is like below
String content =
"Dear user,
<font face="Arial">Hello</font>
Regards,
Gen";
I am passing this content to the mail sender.
`MimeMessage message = emailSender.createMimeMessage();
String encodingOptions = "text/html; charset=UTF-8; format=flowed";
try{
message.setHeader("Content-Type", encodingOptions);
message.setSentDate(new Date());
MimeMessageHelper helper = new MimeMessageHelper(message, true, "utf-8");
boolean isHTML = true;
helper.setFrom(mailFrom);
helper.setTo(to.replaceAll("\\s",""));
helper.setSubject(subject);
helper.setText(content, isHTML);`
And this content String I am passing to the mail send like above, and it is in the format of html. When I recieve the mail I am getting the mail like below
Dear user,Hello Regards,Gen
How can I display the content in the below format.
Dear user,
Hello
Regards,
Gen