Email Record: Code generation with templates /