Fix text_to_html() content type check. #1810
INtroduce additional unit tests for EDD_Emails. #1810