Mail Merge input file generation