fix html email functional