Reputation: 1
I use velocity to create a string writer, then merge that into a template. The template #includes html to make a simple table, yet only the raw HTML shows up in the email... it does not get rendered. Email is being sent from Google server to outlook client. Can anyone tell me How can I get rendered HTML into an email message created with Velocity?
Thanks!
Upvotes: 0
Views: 786
Reputation: 6583
You have to set a Content-type: text/html
header.
Appart from that, you have to be aware that all the different email clients may strip the HTML tags and features (for example, styles), so you have to experiment with different email clients and try to stick to a very basic feature set.
Upvotes: 1