# Creating multiple output files, with content that depends on a variable

I'd like to write a template for a letter, which is meant to be sent to many people. Thus, the content should change slightly depending on who is the addressee. For instance, I imagine that the template could be something like the following:

\begin{letter}

\opening{Dear A,}
\opening{My dear B,}

...


• Have you looked at the documentation for the envlab package? texdoc elguide – Matthew Leingang Jun 17 '14 at 17:47