生成用于群发邮件的动态Word文档
我需要使用 PHP 生成基于 Word 文档模型的群发邮件。 给出的是一个数据库,其中包含需要在我的单词模型中填充的地址和数据。 我想生成一个包含数据库中不同地址和字段内容的单词文档。
我们有一个 Linux 服务器,但 COM 对象不可用。
是否有现成的类可以做到这一点?您有使用过 PHPWord 的经验吗? 在这种情况下,最佳实践是什么?
在理想情况下,客户只需上传 Word 主文档,其中包含需要填写的字段,然后融合到包含整个邮件的多页 Word 文档。
I need to generate a mass mailing based on a word document model with PHP.
Given is a database with the adresses and the data that need to be filled in my word model.
I want to generate a single word document with the different adresses and field contents from the database.
We have a Linux server and the COM object is not avalaible.
Is there a ready to use class to do this? Did you had any experiance with PHPWord?
What is the best practice in this case?
In the ideal case the client should just upload th word master document, with the fields that need to be filled and then fusioned to a multiple pages word document containing the whole mailing.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我不会使用 Microsoft Word 作为 HTML 电子邮件的模型。
创建一些 HTML 模板,然后使用 PHP 迭代数据库并替换 HTML 中的某些字段。
I wouldn't use Microsoft Word as a model for HTML emails.
Create some HTML templates, then use PHP to iterate through your database and replace certain fields in the HTML.