Simple Mail Merge in PHP
Contents
[
Hide
]
Aspose.Words - Simple Mail Merge
To use Mail Merge, simply invoke getMailMerge->execute method.
Php Code
$doc = new Java("com.aspose.words.Document", "Template.doc");
// Fill the fields in the document with user data.
$doc->getMailMerge()->execute(
array("FullName", "Company", "Address", "Address2", "City"),
array("James Bond", "MI5 Headquarters", "Milbank", "", "London")
);
// Saves the document to disk.
$doc->save($dataDir . "MailMerge Result Out.docx");
Download Running Code
Download Simple Mail Merge (Aspose.Words) from any of the below mentioned social coding sites: