This is not strictly a TeX/LaTeX/ConTeXt question, nevertheless this is probably the best place to ask.
For the people who don't know: mail merge is a standard functionality in a word processor that allows to send personalized documents to a list of people (usually from some kind of a database). One can send such documents via snail mail or via e-mail.
I've seen many packages/tools to generate the documents with LaTeX for printing and then sending them via snail mail.
What I want to do, is to send the documents via email, as PDF attachments. LibreOffice has such an option. Unfortunately, as is the case for word processors, the generated documents are of rather poor typographic quality.
Now comes the question. Has anyone seen/used a tool that might help with this task but with PDF documents compiled with TeX and friends? I have something in mind:
- Generate *tex files using Python and Jinja
- Compile *tex files using TeX and make (or rather: latexmk)
- Send the resulting *pdf files with python and its email library
Still, as a lazy human being I would rather not write this from scratch. Can someone point me to an existing solution?