Fixed syntactical error when generating HTML mails