Ulf Dittmer wrote:What do you mean by "replacing"? JavaMail does not alter the contents of messages it sends.
Zandis Murāns wrote:You must set proper content type (in this case "text/html") to see html in email message. I belive that by default this content type is "text/plain".
Amitesh kum wrote:i am setting content as <h1>Hello World</h1>. Currently mail is cumming as it is "<h1>Hello World</h1>"
It should format the text("Hello world") in heading1 and send as mail.
JavaMail does not alter the contents of messages it sends.