Update #69: refactor mail template engine and merge it with EndUserBaseMail.