Hello,
I am sending a report as an email using JavaMail that requires fixed width formatting of text. I cannot send this as text/html, it must be sent as plain text.
How do I format the message under "text/plain" to a specific (fixed) font?
Here is what I am using to set the body of the message (they can optionally ask for html, plain text or both):
if (format.isText()) {
msg.setText(body);
}
if (format.isHtml()) {
msg.setContent(body,"text/html; charset=\"ISO-8859-1\"");
}
Thank you.