mail merge

A function of some word processing software (e.g. Microsoft Word) that produces multiple instances of a document by substituting different text strings from a database in place of certain field markers. This is often done with envelopes, resumes, spam, and various other mass mailings.

http://mtroyal.ab.ca/programs/academserv/ADC/workshops/staff/mail_merge/mail_merge_tutorial.html.