This week's book giveaway is in the Kotlin forum.
We're giving away four copies of Kotlin in Action and have Dmitry Jemerov & Svetlana Isakova on-line!
See this thread for details.
Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

email and mime type  RSS feed

geofrey pony
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have the email data being displayed in HTML (read only field) and on clicking a button the email functionality has to be performed. For displaying in html appropriately the message has lot of 'td' and 'tr' with 'br' syntax. Currently using <bean:write name="formname" property="messageContent" filter="false" /> for displaying in html.

The email functionality is working fine. It is a simple message without any attachment. We use a wrapper on top of Spring framework which provides the email support.
However, when I receive the email in my inbox, the message contains all the html tags.

How can I get rid of the html tags when the message is received in my inbox?

Thanks in advance.
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!