Added a feature to return message as html

This patch adds the feature to get html message.