check length of html to avoid email sending error