Added a feature to return message as html

This patch adds the feature to get a html message.