This is called a mailmerge.
Traditionally mailmerge is used to send a bunch of people one messagae, individually addressed, but it can also be used to simply have a data file and fill in various forms using the data for a single individual from the data file.
See
Mail Merge