Expand doclink HTML elements in MAIL_TEMPLATE's body (fixes #3651)