Mailmerge with PhpOfficePhpWord


I am trying to create a simple mail merging facility on my php web application.

The user will select the MS Word template and select the members and the system will create a merged document for posting. I used TemplateProcessor and setValue to create a single document and that is working.

Now my problem is to repeat the template to create a big document for multiple members. I have no idea yet how to solve that.

Can someone shed some light on how I should do that?


Need Help? Chat with us