Fixed issue with undefined function in HTML Mail.