handle message whem content type equal text/html