java - How can I change the font for my auto-email's text? -


i have program has send email every day same addresses. use packages javax.mail.* , it.sauronsoftware.cron4j.scheduler. works fine, not know how change font of text in email (for example, output information in bigger font, or bold, or underlined).

i store email text in string variable. , tried type this:

content = "some text <b>bold part</b> ... continue"

... unfortunately, did not work , in received mail have same string <b> tags.

how can manipulate font email text?

you appear sending mail plain-text email, not html mail (which need if want use text formatting). see tutorial.

the important difference need specify text/html mail's mime type

message.setcontent("some text <b>bold part</b> ... continue", "text/html"); 

some mail clients interpret few plain-text commands such "some text *bold part* ... continue", wouldn't rely on that.


Comments