$html_msg values are only used for HTML-formatted emails, which I thought you said were already working fine.